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
4eb58312
Commit
4eb58312
authored
Jun 19, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/vmr9: Avoid leaking the surface array on connection failure.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c4f92087
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
vmr9.c
dlls/quartz/vmr9.c
+5
-1
No files found.
dlls/quartz/vmr9.c
View file @
4eb58312
...
...
@@ -428,11 +428,14 @@ static HRESULT allocate_surfaces(struct quartz_vmr *filter, const AM_MEDIA_TYPE
case
32
:
info
.
Format
=
D3DFMT_X8R8G8B8
;
break
;
default:
FIXME
(
"Unhandled bit depth %u.
\n
"
,
filter
->
bmiheader
.
biBitCount
);
free
(
filter
->
surfaces
);
return
E_INVALIDARG
;
}
info
.
dwFlags
=
VMR9AllocFlag_TextureSurface
;
return
initialize_device
(
filter
,
&
info
,
count
);
if
(
FAILED
(
hr
=
initialize_device
(
filter
,
&
info
,
count
)))
free
(
filter
->
surfaces
);
return
hr
;
}
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
formats
);
++
i
)
...
...
@@ -457,6 +460,7 @@ static HRESULT allocate_surfaces(struct quartz_vmr *filter, const AM_MEDIA_TYPE
}
}
free
(
filter
->
surfaces
);
return
hr
;
}
...
...
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