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
7f9d5aad
Commit
7f9d5aad
authored
Dec 11, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Fix a couple of leaks in tests.
parent
3635bbb9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
olepicture.c
dlls/oleaut32/tests/olepicture.c
+8
-5
No files found.
dlls/oleaut32/tests/olepicture.c
View file @
7f9d5aad
...
...
@@ -357,6 +357,7 @@ static void test_empty_image(void) {
ok
(
hres
==
S_OK
,
"empty picture get handle failed with hres 0x%08x
\n
"
,
hres
);
ok
(
handle
==
0
,
"empty picture get handle did not return 0, but 0x%08x
\n
"
,
handle
);
IPicture_Release
(
pic
);
IStream_Release
(
stream
);
}
static
void
test_empty_image_2
(
void
)
{
...
...
@@ -395,6 +396,7 @@ static void test_empty_image_2(void) {
ok
(
type
==
PICTYPE_NONE
,
"type is %d, but should be PICTYPE_NONE(0)
\n
"
,
type
);
IPicture_Release
(
pic
);
IStream_Release
(
stream
);
}
static
void
test_Invoke
(
void
)
...
...
@@ -408,16 +410,17 @@ static void test_Invoke(void)
HGLOBAL
hglob
;
void
*
data
;
hglob
=
GlobalAlloc
(
0
,
sizeof
(
gifimage
));
data
=
GlobalLock
(
hglob
);
memcpy
(
data
,
gifimage
,
sizeof
(
gifimage
));
hglob
=
GlobalAlloc
(
0
,
sizeof
(
gifimage
));
data
=
GlobalLock
(
hglob
);
memcpy
(
data
,
gifimage
,
sizeof
(
gifimage
));
GlobalUnlock
(
hglob
);
hr
=
CreateStreamOnHGlobal
(
hglob
,
FALSE
,
&
stream
);
hr
=
CreateStreamOnHGlobal
(
hglob
,
FALSE
,
&
stream
);
ok_ole_success
(
hr
,
"CreateStreamOnHGlobal"
);
hr
=
pOleLoadPicture
(
stream
,
sizeof
(
gifimage
),
TRUE
,
&
IID_IPictureDisp
,
(
void
**
)
&
picdisp
);
hr
=
pOleLoadPicture
(
stream
,
sizeof
(
gifimage
),
TRUE
,
&
IID_IPictureDisp
,
(
void
**
)
&
picdisp
);
IStream_Release
(
stream
);
GlobalFree
(
hglob
);
ok_ole_success
(
hr
,
"OleLoadPicture"
);
V_VT
(
&
vararg
)
=
VT_BOOL
;
...
...
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