Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d62b4dcb
Commit
d62b4dcb
authored
Nov 09, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Nov 10, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Fix buffer leak in error path.
parent
10c51a80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
gstdemux.c
dlls/winegstreamer/gstdemux.c
+4
-2
No files found.
dlls/winegstreamer/gstdemux.c
View file @
d62b4dcb
...
...
@@ -517,10 +517,12 @@ static GstFlowReturn got_data_sink(GstPad *pad, GstBuffer *buf) {
}
else
{
BYTE
*
ptr
=
NULL
;
hr
=
BaseOutputPinImpl_GetDeliveryBuffer
(
&
pin
->
pin
,
&
sample
,
NULL
,
NULL
,
0
);
freeSamp
=
TRUE
;
if
(
hr
==
VFW_E_NOT_CONNECTED
)
if
(
hr
==
VFW_E_NOT_CONNECTED
)
{
gst_buffer_unref
(
buf
);
return
GST_FLOW_NOT_LINKED
;
}
if
(
FAILED
(
hr
))
{
gst_buffer_unref
(
buf
);
ERR
(
"Didn't get a GST_APP_BUFFER, and could not get a delivery buffer (%x), returning GST_FLOW_WRONG_STATE
\n
"
,
hr
);
return
GST_FLOW_WRONG_STATE
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment