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
cec43c18
Commit
cec43c18
authored
Jun 12, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Factor out strmbase_sink_cleanup().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a1d65ac3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
pin.c
dlls/strmbase/pin.c
+10
-5
No files found.
dlls/strmbase/pin.c
View file @
cec43c18
...
...
@@ -1150,13 +1150,18 @@ HRESULT BaseInputPin_Construct(const IPinVtbl *InputPin_Vtbl, LONG inputpin_size
return
S_OK
;
}
static
void
strmbase_sink_cleanup
(
BaseInputPin
*
pin
)
{
FreeMediaType
(
&
pin
->
pin
.
mtCurrent
);
if
(
pin
->
pAllocator
)
IMemAllocator_Release
(
pin
->
pAllocator
);
pin
->
pAllocator
=
NULL
;
pin
->
pin
.
IPin_iface
.
lpVtbl
=
NULL
;
}
HRESULT
WINAPI
BaseInputPin_Destroy
(
BaseInputPin
*
This
)
{
FreeMediaType
(
&
This
->
pin
.
mtCurrent
);
if
(
This
->
pAllocator
)
IMemAllocator_Release
(
This
->
pAllocator
);
This
->
pAllocator
=
NULL
;
This
->
pin
.
IPin_iface
.
lpVtbl
=
NULL
;
strmbase_sink_cleanup
(
This
);
CoTaskMemFree
(
This
);
return
S_OK
;
}
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