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
532c986a
Commit
532c986a
authored
Dec 12, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
Dec 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
devenum/tests: Fix some memory leaks (Valgrind).
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f760079a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
devenum.c
dlls/devenum/tests/devenum.c
+5
-0
No files found.
dlls/devenum/tests/devenum.c
View file @
532c986a
...
...
@@ -129,6 +129,7 @@ static void test_devenum(IBindCtx *bind_ctx)
hr
=
IMoniker_BindToObject
(
moniker
,
bind_ctx
,
NULL
,
&
IID_IUnknown
,
NULL
);
ok
(
hr
==
E_POINTER
,
"got %#x
\n
"
,
hr
);
VariantClear
(
&
var
);
CoTaskMemFree
(
displayname
);
IPropertyBag_Release
(
prop_bag
);
IMoniker_Release
(
moniker
);
...
...
@@ -137,6 +138,7 @@ static void test_devenum(IBindCtx *bind_ctx)
}
}
IEnumMoniker_Release
(
enum_cat
);
ICreateDevEnum_Release
(
create_devenum
);
}
...
...
@@ -466,6 +468,7 @@ static void test_codec(void)
* enumerating them will destroy the key */
ok
(
!
find_moniker
(
&
CLSID_AudioRendererCategory
,
mon
),
"codec should not be registered
\n
"
);
VariantClear
(
&
var
);
hr
=
IPropertyBag_Read
(
prop_bag
,
friendly_name
,
&
var
,
NULL
);
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_FILE_NOT_FOUND
),
"got %#x
\n
"
,
hr
);
...
...
@@ -589,6 +592,7 @@ static void test_legacy_filter(void)
ok
(
!
lstrcmpW
(
buffer
,
V_BSTR
(
&
var
)),
"expected %s, got %s
\n
"
,
wine_dbgstr_w
(
buffer
),
wine_dbgstr_w
(
V_BSTR
(
&
var
)));
VariantClear
(
&
var
);
IPropertyBag_Release
(
prop_bag
);
hr
=
IFilterMapper_UnregisterFilter
(
mapper
,
CLSID_TestFilter
);
...
...
@@ -999,6 +1003,7 @@ static void test_vfw(void)
ok
(
!
lstrcmpW
(
name
,
V_BSTR
(
&
var
)),
"expected %s, got %s
\n
"
,
wine_dbgstr_w
(
name
),
wine_dbgstr_w
(
V_BSTR
(
&
var
)));
VariantClear
(
&
var
);
IPropertyBag_Release
(
prop_bag
);
IMoniker_Release
(
mon
);
}
...
...
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