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
c1fa6be4
Commit
c1fa6be4
authored
Dec 02, 2023
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Dec 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Fix a memory leak (Coverity).
video_format can be leaked when encountering an invalid WMV format.
parent
93db373c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
quartz_parser.c
dlls/winegstreamer/quartz_parser.c
+3
-3
No files found.
dlls/winegstreamer/quartz_parser.c
View file @
c1fa6be4
...
...
@@ -625,9 +625,6 @@ static bool amt_from_wg_format_video_wmv(AM_MEDIA_TYPE *mt, const struct wg_form
uint32_t
frame_time
;
const
GUID
*
subtype
;
if
(
!
(
video_format
=
CoTaskMemAlloc
(
sizeof
(
*
video_format
))))
return
false
;
switch
(
format
->
u
.
video_wmv
.
format
)
{
case
WG_WMV_VIDEO_FORMAT_WMV1
:
...
...
@@ -650,6 +647,9 @@ static bool amt_from_wg_format_video_wmv(AM_MEDIA_TYPE *mt, const struct wg_form
return
false
;
}
if
(
!
(
video_format
=
CoTaskMemAlloc
(
sizeof
(
*
video_format
))))
return
false
;
mt
->
majortype
=
MEDIATYPE_Video
;
mt
->
subtype
=
*
subtype
;
mt
->
bFixedSizeSamples
=
FALSE
;
...
...
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