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
5d97f125
Commit
5d97f125
authored
Aug 07, 2023
by
Sven Baars
Committed by
Alexandre Julliard
Aug 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/tests: Fix some memory leaks in test_add_source_filter() (Valgrind).
parent
c1b832cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
filtergraph.c
dlls/quartz/tests/filtergraph.c
+5
-0
No files found.
dlls/quartz/tests/filtergraph.c
View file @
5d97f125
...
...
@@ -23,6 +23,7 @@
#define CONST_VTABLE
#include "dshow.h"
#include "wine/strmbase.h"
#include "wine/test.h"
static
const
GUID
testguid
=
{
0xabbccdde
};
...
...
@@ -5076,6 +5077,8 @@ static void test_add_source_filter(void)
ok
(
IsEqualGUID
(
&
mt
.
majortype
,
&
MEDIATYPE_Stream
),
"Got major type %s.
\n
"
,
wine_dbgstr_guid
(
&
mt
.
majortype
));
ok
(
IsEqualGUID
(
&
mt
.
subtype
,
&
MEDIASUBTYPE_MPEG1Audio
),
"Got subtype %s.
\n
"
,
wine_dbgstr_guid
(
&
mt
.
subtype
));
IFileSourceFilter_Release
(
filesource
);
CoTaskMemFree
(
ret_filename
);
FreeMediaType
(
&
mt
);
hr
=
IFilterGraph2_AddSourceFilter
(
graph
,
filename
,
L"test"
,
&
filter2
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
...
...
@@ -5115,6 +5118,8 @@ static void test_add_source_filter(void)
ok
(
IsEqualGUID
(
&
mt
.
majortype
,
&
MEDIATYPE_Stream
),
"Got major type %s.
\n
"
,
wine_dbgstr_guid
(
&
mt
.
majortype
));
ok
(
IsEqualGUID
(
&
mt
.
subtype
,
&
MEDIATYPE_Midi
),
"Got subtype %s.
\n
"
,
wine_dbgstr_guid
(
&
mt
.
subtype
));
IFileSourceFilter_Release
(
filesource
);
CoTaskMemFree
(
ret_filename
);
FreeMediaType
(
&
mt
);
hr
=
IFilterGraph2_RemoveFilter
(
graph
,
filter
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
...
...
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