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
3c98e11b
Commit
3c98e11b
authored
May 23, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
May 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Reimplement BaseFilterImpl_Release() using a destructor callback.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1fc5c6b7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
filter.c
dlls/strmbase/filter.c
+2
-2
strmbase.h
include/wine/strmbase.h
+1
-0
No files found.
dlls/strmbase/filter.c
View file @
3c98e11b
...
...
@@ -54,7 +54,7 @@ ULONG WINAPI BaseFilterImpl_AddRef(IBaseFilter * iface)
return
refCount
;
}
ULONG
WINAPI
BaseFilterImpl_Release
(
IBaseFilter
*
iface
)
ULONG
WINAPI
BaseFilterImpl_Release
(
IBaseFilter
*
iface
)
{
BaseFilter
*
This
=
impl_from_IBaseFilter
(
iface
);
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
refCount
);
...
...
@@ -62,7 +62,7 @@ ULONG WINAPI BaseFilterImpl_Release(IBaseFilter * iface)
TRACE
(
"(%p)->() Release from %d
\n
"
,
This
,
refCount
+
1
);
if
(
!
refCount
)
strmbase_filter_cleanup
(
This
);
This
->
pFuncsTable
->
filter_destroy
(
This
);
return
refCount
;
}
...
...
include/wine/strmbase.h
View file @
3c98e11b
...
...
@@ -171,6 +171,7 @@ typedef struct BaseFilter
typedef
struct
BaseFilterFuncTable
{
IPin
*
(
*
filter_get_pin
)(
BaseFilter
*
iface
,
unsigned
int
index
);
void
(
*
filter_destroy
)(
BaseFilter
*
iface
);
}
BaseFilterFuncTable
;
HRESULT
WINAPI
BaseFilterImpl_QueryInterface
(
IBaseFilter
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
);
...
...
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