Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8315486d
Commit
8315486d
authored
Nov 26, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Fix possible leak on error path (Coverity).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0d16b018
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
media_source.c
dlls/winegstreamer/media_source.c
+4
-4
No files found.
dlls/winegstreamer/media_source.c
View file @
8315486d
...
...
@@ -1235,17 +1235,14 @@ static HRESULT media_source_constructor(IMFByteStream *bytestream, struct media_
GstStaticPadTemplate
src_template
=
GST_STATIC_PAD_TEMPLATE
(
"mf_src"
,
GST_PAD_SRC
,
GST_PAD_ALWAYS
,
GST_STATIC_CAPS_ANY
);
struct
media_source
*
object
=
heap_alloc_zero
(
sizeof
(
*
object
));
IMFStreamDescriptor
**
descriptors
=
NULL
;
struct
media_source
*
object
;
gint64
total_pres_time
=
0
;
DWORD
bytestream_caps
;
unsigned
int
i
;
HRESULT
hr
;
int
ret
;
if
(
!
object
)
return
E_OUTOFMEMORY
;
if
(
FAILED
(
hr
=
IMFByteStream_GetCapabilities
(
bytestream
,
&
bytestream_caps
)))
return
hr
;
...
...
@@ -1255,6 +1252,9 @@ static HRESULT media_source_constructor(IMFByteStream *bytestream, struct media_
return
MF_E_BYTESTREAM_NOT_SEEKABLE
;
}
if
(
!
(
object
=
heap_alloc_zero
(
sizeof
(
*
object
))))
return
E_OUTOFMEMORY
;
object
->
IMFMediaSource_iface
.
lpVtbl
=
&
IMFMediaSource_vtbl
;
object
->
async_commands_callback
.
lpVtbl
=
&
source_async_commands_callback_vtbl
;
object
->
ref
=
1
;
...
...
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