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
6ab3ba13
Commit
6ab3ba13
authored
Aug 28, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Fix memory leaks in typelib tests.
parent
723d22f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
typelib.c
dlls/oleaut32/tests/typelib.c
+4
-0
No files found.
dlls/oleaut32/tests/typelib.c
View file @
6ab3ba13
...
...
@@ -3131,12 +3131,14 @@ static void test_CreateTypeLib(SYSKIND sys) {
ok
(
docstring
==
NULL
,
"got docstring: %s
\n
"
,
wine_dbgstr_w
(
docstring
));
ok
(
helpcontext
==
0x201
,
"got helpcontext: 0x%x
\n
"
,
helpcontext
);
ok
(
!
memcmp
(
helpfile
,
helpfileW
,
sizeof
(
helpfileW
)),
"got helpfile: %s
\n
"
,
wine_dbgstr_w
(
helpfile
));
SysFreeString
(
name
);
SysFreeString
(
helpfile
);
hres
=
ITypeInfo_GetNames
(
ti
,
pfuncdesc
->
memid
,
names
,
sizeof
(
names
)
/
sizeof
(
*
names
),
&
cnames
);
ok
(
hres
==
S_OK
,
"got: %08x
\n
"
,
hres
);
ok
(
cnames
==
1
,
"got: %u
\n
"
,
cnames
);
ok
(
!
memcmp
(
names
[
0
],
func1W
,
sizeof
(
func1W
)),
"got names[0]: %s
\n
"
,
wine_dbgstr_w
(
names
[
0
]));
SysFreeString
(
names
[
0
]);
ITypeInfo_ReleaseFuncDesc
(
ti
,
pfuncdesc
);
hres
=
ITypeInfo_GetFuncDesc
(
ti
,
10
,
&
pfuncdesc
);
...
...
@@ -3250,6 +3252,7 @@ static void test_CreateTypeLib(SYSKIND sys) {
ok
(
hres
==
S_OK
,
"got: %08x
\n
"
,
hres
);
ok
(
cnames
==
1
,
"got: %u
\n
"
,
cnames
);
ok
(
!
memcmp
(
names
[
0
],
func1W
,
sizeof
(
func1W
)),
"got names[0]: %s
\n
"
,
wine_dbgstr_w
(
names
[
0
]));
SysFreeString
(
names
[
0
]);
ITypeInfo_ReleaseFuncDesc
(
ti
,
pfuncdesc
);
hres
=
ITypeInfo_GetFuncDesc
(
ti
,
13
,
&
pfuncdesc
);
...
...
@@ -4825,6 +4828,7 @@ static void testTDA(ITypeLib *tl, struct _TDATest *TDATest,
break
;
}
ITypeInfo_ReleaseTypeAttr
(
ti
,
typeattr
);
ITypeInfo_Release
(
ti
);
}
...
...
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