projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a45e440
)
[WIN32K]
author
Timo Kreuzer
<timo.kreuzer@reactos.org>
Thu, 1 May 2014 09:59:01 +0000
(09:59 +0000)
committer
Timo Kreuzer
<timo.kreuzer@reactos.org>
Thu, 1 May 2014 09:59:01 +0000
(09:59 +0000)
When no clip object is passed to EngGradientFill, use the global trivial one instead of creating a new one. Fixes memory leak. CID 716615
svn path=/trunk/; revision=63091
reactos/win32ss/gdi/eng/gradient.c
patch
|
blob
|
history
diff --git
a/reactos/win32ss/gdi/eng/gradient.c
b/reactos/win32ss/gdi/eng/gradient.c
index
5dd9008
..
784f216
100644
(file)
--- a/
reactos/win32ss/gdi/eng/gradient.c
+++ b/
reactos/win32ss/gdi/eng/gradient.c
@@
-487,13
+487,11
@@
EngGradientFill(
ULONG i;
BOOL ret = FALSE;
- if (!pco)
+ /* Check for NULL clip object */
+ if (pco == NULL)
{
- pco = IntEngCreateClipRegion(0, 0, prclExtents);
- if (!pco)
- {
- return FALSE;
- }
+ /* Use the trivial one instead */
+ pco = &gxcoTrivial.ClipObj;
}
switch(ulMode)