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
3dbcadc2
Commit
3dbcadc2
authored
Jul 18, 2014
by
Thomas Faber
Committed by
Alexandre Julliard
Jul 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Destroy base class after child class.
parent
992f5345
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
renderer.c
dlls/strmbase/renderer.c
+2
-1
transform.c
dlls/strmbase/transform.c
+2
-1
No files found.
dlls/strmbase/renderer.c
View file @
3dbcadc2
...
...
@@ -294,7 +294,7 @@ HRESULT WINAPI BaseRendererImpl_QueryInterface(IBaseFilter* iface, REFIID riid,
ULONG
WINAPI
BaseRendererImpl_Release
(
IBaseFilter
*
iface
)
{
BaseRenderer
*
This
=
impl_from_IBaseFilter
(
iface
);
ULONG
refCount
=
BaseFilterImpl_Release
(
iface
);
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
filter
.
refCount
);
if
(
!
refCount
)
{
...
...
@@ -319,6 +319,7 @@ ULONG WINAPI BaseRendererImpl_Release(IBaseFilter* iface)
CloseHandle
(
This
->
ThreadSignal
);
CloseHandle
(
This
->
RenderEvent
);
QualityControlImpl_Destroy
(
This
->
qcimpl
);
BaseFilter_Destroy
(
&
This
->
filter
);
}
return
refCount
;
}
...
...
dlls/strmbase/transform.c
View file @
3dbcadc2
...
...
@@ -313,7 +313,7 @@ HRESULT WINAPI TransformFilterImpl_QueryInterface(IBaseFilter * iface, REFIID ri
ULONG
WINAPI
TransformFilterImpl_Release
(
IBaseFilter
*
iface
)
{
TransformFilter
*
This
=
impl_from_IBaseFilter
(
iface
);
ULONG
refCount
=
BaseFilterImpl_Release
(
iface
);
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
filter
.
refCount
);
TRACE
(
"(%p/%p)->() Release from %d
\n
"
,
This
,
iface
,
refCount
+
1
);
...
...
@@ -343,6 +343,7 @@ ULONG WINAPI TransformFilterImpl_Release(IBaseFilter * iface)
FreeMediaType
(
&
This
->
pmt
);
QualityControlImpl_Destroy
(
This
->
qcimpl
);
IUnknown_Release
(
This
->
seekthru_unk
);
BaseFilter_Destroy
(
&
This
->
filter
);
CoTaskMemFree
(
This
);
return
0
;
...
...
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