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
c7f51d85
Commit
c7f51d85
authored
Jan 29, 2019
by
Sven Baars
Committed by
Alexandre Julliard
Jan 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Fix some memory leaks (Valgrind).
Signed-off-by:
Sven Baars
<
sven.wine@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cf1b9fe2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
mediatype.c
dlls/strmbase/mediatype.c
+6
-3
renderer.c
dlls/strmbase/renderer.c
+1
-0
No files found.
dlls/strmbase/mediatype.c
View file @
c7f51d85
...
@@ -264,14 +264,17 @@ static HRESULT WINAPI IEnumMediaTypesImpl_Reset(IEnumMediaTypes * iface)
...
@@ -264,14 +264,17 @@ static HRESULT WINAPI IEnumMediaTypesImpl_Reset(IEnumMediaTypes * iface)
CoTaskMemFree
(
This
->
enumMediaDetails
.
pMediaTypes
);
CoTaskMemFree
(
This
->
enumMediaDetails
.
pMediaTypes
);
i
=
0
;
i
=
0
;
while
(
This
->
enumMediaFunction
(
This
->
basePin
,
i
,
&
amt
)
==
S_OK
)
i
++
;
while
(
This
->
enumMediaFunction
(
This
->
basePin
,
i
,
&
amt
)
==
S_OK
)
{
FreeMediaType
(
&
amt
);
i
++
;
}
This
->
enumMediaDetails
.
cMediaTypes
=
i
;
This
->
enumMediaDetails
.
cMediaTypes
=
i
;
This
->
enumMediaDetails
.
pMediaTypes
=
CoTaskMemAlloc
(
sizeof
(
AM_MEDIA_TYPE
)
*
i
);
This
->
enumMediaDetails
.
pMediaTypes
=
CoTaskMemAlloc
(
sizeof
(
AM_MEDIA_TYPE
)
*
i
);
for
(
i
=
0
;
i
<
This
->
enumMediaDetails
.
cMediaTypes
;
i
++
)
for
(
i
=
0
;
i
<
This
->
enumMediaDetails
.
cMediaTypes
;
i
++
)
{
{
This
->
enumMediaFunction
(
This
->
basePin
,
i
,
&
amt
);
if
(
FAILED
(
This
->
enumMediaFunction
(
This
->
basePin
,
i
,
&
This
->
enumMediaDetails
.
pMediaTypes
[
i
])))
if
(
FAILED
(
CopyMediaType
(
&
This
->
enumMediaDetails
.
pMediaTypes
[
i
],
&
amt
)))
{
{
while
(
i
--
)
while
(
i
--
)
FreeMediaType
(
&
This
->
enumMediaDetails
.
pMediaTypes
[
i
]);
FreeMediaType
(
&
This
->
enumMediaDetails
.
pMediaTypes
[
i
]);
...
...
dlls/strmbase/renderer.c
View file @
c7f51d85
...
@@ -346,6 +346,7 @@ HRESULT WINAPI BaseRendererImpl_Receive(BaseRenderer *This, IMediaSample * pSamp
...
@@ -346,6 +346,7 @@ HRESULT WINAPI BaseRendererImpl_Receive(BaseRenderer *This, IMediaSample * pSamp
{
{
return
VFW_E_TYPE_NOT_ACCEPTED
;
return
VFW_E_TYPE_NOT_ACCEPTED
;
}
}
DeleteMediaType
(
pmt
);
}
}
This
->
pMediaSample
=
pSample
;
This
->
pMediaSample
=
pSample
;
...
...
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