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
d5e3e930
Commit
d5e3e930
authored
Mar 30, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Fix memory leaks (valgrind).
parent
da4ed470
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
cpp.c
dlls/msvcrt/tests/cpp.c
+7
-2
No files found.
dlls/msvcrt/tests/cpp.c
View file @
d5e3e930
...
...
@@ -810,7 +810,8 @@ static void test_rtti(void)
void
*
casted
;
if
(
bAncientVersion
||
!
p__RTCastToVoid
||
!
p__RTtypeid
||
!
pexception_ctor
||
!
pbad_typeid_ctor
||
!
p__RTDynamicCast
)
!
p__RTCastToVoid
||
!
p__RTtypeid
||
!
pexception_ctor
||
!
pbad_typeid_ctor
||
!
p__RTDynamicCast
||
!
pexception_dtor
||
!
pbad_typeid_dtor
)
return
;
call_func2
(
pexception_ctor
,
&
e
,
&
e_name
);
...
...
@@ -834,6 +835,9 @@ static void test_rtti(void)
/* dynamic_cast down */
casted
=
p__RTDynamicCast
(
&
e
,
0
,
NULL
,
bti
,
0
);
ok
(
casted
==
NULL
,
"Cast succeeded
\n
"
);
call_func1
(
pexception_dtor
,
&
e
);
call_func1
(
pbad_typeid_dtor
,
&
b
);
}
struct
_demangle
{
...
...
@@ -864,7 +868,8 @@ static void test_demangle_datatype(void)
ok
(
name
!=
NULL
&&
!
strcmp
(
name
,
demangle
[
i
].
result
),
"Got name
\"
%s
\"
for %d
\n
"
,
name
,
i
);
else
todo_wine
ok
(
name
!=
NULL
&&
!
strcmp
(
name
,
demangle
[
i
].
result
),
"Got name %s for %d
\n
"
,
name
,
i
);
if
(
name
)
pfree
(
name
);
}
}
...
...
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