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
cee69310
Commit
cee69310
authored
Jan 13, 2008
by
Dan Kegel
Committed by
Alexandre Julliard
Jan 14, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus/tests: Don't free if alloc failed.
parent
43324faf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
image.c
dlls/gdiplus/tests/image.c
+4
-2
No files found.
dlls/gdiplus/tests/image.c
View file @
cee69310
...
@@ -34,7 +34,8 @@ static void test_Scan0(void)
...
@@ -34,7 +34,8 @@ static void test_Scan0(void)
stat
=
GdipCreateBitmapFromScan0
(
10
,
10
,
10
,
PixelFormat24bppRGB
,
NULL
,
&
bm
);
stat
=
GdipCreateBitmapFromScan0
(
10
,
10
,
10
,
PixelFormat24bppRGB
,
NULL
,
&
bm
);
expect
(
Ok
,
stat
);
expect
(
Ok
,
stat
);
ok
(
NULL
!=
bm
,
"Expected bitmap to be initialized
\n
"
);
ok
(
NULL
!=
bm
,
"Expected bitmap to be initialized
\n
"
);
GdipDisposeImage
((
GpImage
*
)
bm
);
if
(
stat
==
Ok
)
GdipDisposeImage
((
GpImage
*
)
bm
);
bm
=
(
GpBitmap
*
)
0xdeadbeef
;
bm
=
(
GpBitmap
*
)
0xdeadbeef
;
stat
=
GdipCreateBitmapFromScan0
(
10
,
-
10
,
10
,
PixelFormat24bppRGB
,
NULL
,
&
bm
);
stat
=
GdipCreateBitmapFromScan0
(
10
,
-
10
,
10
,
PixelFormat24bppRGB
,
NULL
,
&
bm
);
...
@@ -58,7 +59,8 @@ static void test_Scan0(void)
...
@@ -58,7 +59,8 @@ static void test_Scan0(void)
stat
=
GdipCreateBitmapFromScan0
(
10
,
10
,
12
,
PixelFormat24bppRGB
,
buff
,
&
bm
);
stat
=
GdipCreateBitmapFromScan0
(
10
,
10
,
12
,
PixelFormat24bppRGB
,
buff
,
&
bm
);
expect
(
Ok
,
stat
);
expect
(
Ok
,
stat
);
ok
(
NULL
!=
bm
,
"Expected bitmap to be initialized
\n
"
);
ok
(
NULL
!=
bm
,
"Expected bitmap to be initialized
\n
"
);
GdipDisposeImage
((
GpImage
*
)
bm
);
if
(
stat
==
Ok
)
GdipDisposeImage
((
GpImage
*
)
bm
);
bm
=
(
GpBitmap
*
)
0xdeadbeef
;
bm
=
(
GpBitmap
*
)
0xdeadbeef
;
stat
=
GdipCreateBitmapFromScan0
(
10
,
10
,
10
,
PixelFormat24bppRGB
,
buff
,
&
bm
);
stat
=
GdipCreateBitmapFromScan0
(
10
,
10
,
10
,
PixelFormat24bppRGB
,
buff
,
&
bm
);
...
...
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