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
f96c2bd6
Commit
f96c2bd6
authored
May 22, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
May 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap/avimux: Use BaseFilter_Destroy().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
85516dca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
avimux.c
dlls/qcap/avimux.c
+4
-3
No files found.
dlls/qcap/avimux.c
View file @
f96c2bd6
...
...
@@ -175,7 +175,7 @@ static HRESULT WINAPI AviMux_QueryInterface(IBaseFilter *iface, REFIID riid, voi
static
ULONG
WINAPI
AviMux_Release
(
IBaseFilter
*
iface
)
{
AviMux
*
This
=
impl_from_IBaseFilter
(
iface
);
ULONG
ref
=
BaseFilterImpl_Release
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
filter
.
refCount
);
TRACE
(
"(%p) new refcount: %u
\n
"
,
This
,
ref
);
...
...
@@ -192,6 +192,7 @@ static ULONG WINAPI AviMux_Release(IBaseFilter *iface)
}
HeapFree
(
GetProcessHeap
(),
0
,
This
->
idx1
);
strmbase_filter_cleanup
(
&
This
->
filter
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
ObjectRefCount
(
FALSE
);
}
...
...
@@ -2364,7 +2365,7 @@ IUnknown* WINAPI QCAP_createAVIMux(IUnknown *pUnkOuter, HRESULT *phr)
hr
=
BaseOutputPin_Construct
(
&
AviMuxOut_PinVtbl
,
sizeof
(
AviMuxOut
),
&
info
,
&
AviMuxOut_BaseOutputFuncTable
,
&
avimux
->
filter
.
csFilter
,
(
IPin
**
)
&
avimux
->
out
);
if
(
FAILED
(
hr
))
{
BaseFilterImpl_Release
(
&
avimux
->
filter
.
IBaseFilter_iface
);
strmbase_filter_cleanup
(
&
avimux
->
filter
);
HeapFree
(
GetProcessHeap
(),
0
,
avimux
);
*
phr
=
hr
;
return
NULL
;
...
...
@@ -2377,7 +2378,7 @@ IUnknown* WINAPI QCAP_createAVIMux(IUnknown *pUnkOuter, HRESULT *phr)
hr
=
create_input_pin
(
avimux
);
if
(
FAILED
(
hr
))
{
BaseOutputPinImpl_Release
(
&
avimux
->
out
->
pin
.
pin
.
IPin_iface
);
BaseFilterImpl_Release
(
&
avimux
->
filter
.
IBaseFilter_iface
);
strmbase_filter_cleanup
(
&
avimux
->
filter
);
HeapFree
(
GetProcessHeap
(),
0
,
avimux
);
*
phr
=
hr
;
return
NULL
;
...
...
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