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
f6f2f934
Commit
f6f2f934
authored
May 06, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus/tests: Don't free GDI objects with GlobalFree.
parent
e10f24e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
image.c
dlls/gdiplus/tests/image.c
+4
-4
No files found.
dlls/gdiplus/tests/image.c
View file @
f6f2f934
...
...
@@ -480,7 +480,7 @@ static void test_GdipCreateBitmapFromHBITMAP(void)
expectf
(
HEIGHT1
,
height
);
if
(
stat
==
Ok
)
GdipDisposeImage
((
GpImage
*
)
gpbm
);
GlobalFree
(
hbm
);
DeleteObject
(
hbm
);
hbm
=
CreateBitmap
(
WIDTH2
,
HEIGHT2
,
1
,
1
,
&
buff
);
stat
=
GdipCreateBitmapFromHBITMAP
(
hbm
,
NULL
,
&
gpbm
);
...
...
@@ -493,7 +493,7 @@ static void test_GdipCreateBitmapFromHBITMAP(void)
expectf
(
HEIGHT2
,
height
);
if
(
stat
==
Ok
)
GdipDisposeImage
((
GpImage
*
)
gpbm
);
GlobalFree
(
hbm
);
DeleteObject
(
hbm
);
hdc
=
CreateCompatibleDC
(
0
);
ok
(
hdc
!=
NULL
,
"CreateCompatibleDC failed
\n
"
);
...
...
@@ -530,8 +530,8 @@ static void test_GdipCreateBitmapFromHBITMAP(void)
if
(
stat
==
Ok
)
GdipDisposeImage
((
GpImage
*
)
gpbm
);
GlobalFree
(
hpal
);
GlobalFree
(
hbm
);
DeleteObject
(
hpal
);
DeleteObject
(
hbm
);
}
static
void
test_GdipGetImageFlags
(
void
)
...
...
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