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
44dbf4af
Commit
44dbf4af
authored
May 15, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
May 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/vmr9: Use strmbase_renderer_cleanup().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
dea50a98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vmr9.c
dlls/quartz/vmr9.c
+3
-2
No files found.
dlls/quartz/vmr9.c
View file @
44dbf4af
...
@@ -826,7 +826,7 @@ static ULONG WINAPI VMR9Inner_AddRef(IUnknown * iface)
...
@@ -826,7 +826,7 @@ static ULONG WINAPI VMR9Inner_AddRef(IUnknown * iface)
static
ULONG
WINAPI
VMR9Inner_Release
(
IUnknown
*
iface
)
static
ULONG
WINAPI
VMR9Inner_Release
(
IUnknown
*
iface
)
{
{
struct
quartz_vmr
*
This
=
impl_from_inner_IUnknown
(
iface
);
struct
quartz_vmr
*
This
=
impl_from_inner_IUnknown
(
iface
);
ULONG
refCount
=
BaseRendererImpl_Release
(
&
This
->
renderer
.
filter
.
IBaseFilter_iface
);
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
renderer
.
filter
.
refCount
);
TRACE
(
"(%p/%p)->() Release from %d
\n
"
,
This
,
iface
,
refCount
+
1
);
TRACE
(
"(%p/%p)->() Release from %d
\n
"
,
This
,
iface
,
refCount
+
1
);
...
@@ -848,6 +848,7 @@ static ULONG WINAPI VMR9Inner_Release(IUnknown * iface)
...
@@ -848,6 +848,7 @@ static ULONG WINAPI VMR9Inner_Release(IUnknown * iface)
}
}
FreeLibrary
(
This
->
hD3d9
);
FreeLibrary
(
This
->
hD3d9
);
strmbase_renderer_cleanup
(
&
This
->
renderer
);
CoTaskMemFree
(
This
);
CoTaskMemFree
(
This
);
}
}
return
refCount
;
return
refCount
;
...
@@ -2442,7 +2443,7 @@ static HRESULT vmr_create(IUnknown *outer_unk, LPVOID *ppv, const CLSID *clsid)
...
@@ -2442,7 +2443,7 @@ static HRESULT vmr_create(IUnknown *outer_unk, LPVOID *ppv, const CLSID *clsid)
return
hr
;
return
hr
;
fail:
fail:
BaseRendererImpl_Release
(
&
pVMR
->
renderer
.
filter
.
IBaseFilter_iface
);
strmbase_renderer_cleanup
(
&
pVMR
->
renderer
);
FreeLibrary
(
pVMR
->
hD3d9
);
FreeLibrary
(
pVMR
->
hD3d9
);
CoTaskMemFree
(
pVMR
);
CoTaskMemFree
(
pVMR
);
return
hr
;
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