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
0f7bc2d8
Commit
0f7bc2d8
authored
Oct 28, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Oct 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Avoid memory leaks (coverity).
parent
c19dd476
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
bidi.c
dlls/gdi32/bidi.c
+3
-0
bitmap.c
dlls/gdi32/tests/bitmap.c
+2
-1
dib.c
dlls/gdi32/tests/dib.c
+1
-0
No files found.
dlls/gdi32/bidi.c
View file @
0f7bc2d8
...
...
@@ -545,6 +545,9 @@ BOOL BIDI_Reorder(
WARN
(
"Out of memory
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
chartype
);
HeapFree
(
GetProcessHeap
(),
0
,
levels
);
HeapFree
(
GetProcessHeap
(),
0
,
run_glyphs
);
HeapFree
(
GetProcessHeap
(),
0
,
pwLogClust
);
HeapFree
(
GetProcessHeap
(),
0
,
psva
);
return
FALSE
;
}
res
=
ScriptItemize
(
lpString
+
done
,
i
,
maxItems
,
&
Control
,
&
State
,
pItems
,
&
nItems
);
...
...
dlls/gdi32/tests/bitmap.c
View file @
0f7bc2d8
...
...
@@ -3741,7 +3741,7 @@ static void test_GdiAlphaBlend(void)
DeleteObject
(
bmpDst
);
ReleaseDC
(
NULL
,
hdcNull
);
HeapFree
(
GetProcessHeap
(),
0
,
bmi
);
}
static
void
test_GdiGradientFill
(
void
)
...
...
@@ -3854,6 +3854,7 @@ static void test_GdiGradientFill(void)
DeleteDC
(
hdc
);
DeleteObject
(
bmp
);
HeapFree
(
GetProcessHeap
(),
0
,
bmi
);
}
static
void
test_clipping
(
void
)
...
...
dlls/gdi32/tests/dib.c
View file @
0f7bc2d8
...
...
@@ -1308,6 +1308,7 @@ static void compare_hash_broken_todo(HDC hdc, BITMAPINFO *bmi, BYTE *bits, const
if
(
current_sha1
[
i
]
==
NULL
)
{
ok
(
current_sha1
[
i
]
!=
NULL
,
"missing hash, got
\"
%s
\"
,
\n
"
,
hash
);
HeapFree
(
GetProcessHeap
(),
0
,
hash
);
return
;
}
}
...
...
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