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
79ed388e
Commit
79ed388e
authored
Jun 13, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Factor out strmbase_source_cleanup().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2922615d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
pin.c
dlls/strmbase/pin.c
+9
-4
No files found.
dlls/strmbase/pin.c
View file @
79ed388e
...
...
@@ -773,12 +773,17 @@ HRESULT WINAPI BaseOutputPin_Construct(const IPinVtbl *OutputPin_Vtbl, LONG outp
return
S_OK
;
}
static
void
strmbase_source_cleanup
(
BaseOutputPin
*
pin
)
{
FreeMediaType
(
&
pin
->
pin
.
mtCurrent
);
if
(
pin
->
pAllocator
)
IMemAllocator_Release
(
pin
->
pAllocator
);
pin
->
pAllocator
=
NULL
;
}
HRESULT
WINAPI
BaseOutputPin_Destroy
(
BaseOutputPin
*
This
)
{
FreeMediaType
(
&
This
->
pin
.
mtCurrent
);
if
(
This
->
pAllocator
)
IMemAllocator_Release
(
This
->
pAllocator
);
This
->
pAllocator
=
NULL
;
strmbase_source_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