mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 18:56:48 +00:00
[WIN32K]
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
This commit is contained in:
parent
a45e440cac
commit
b1e9d59ae3
1 changed files with 4 additions and 6 deletions
|
@ -487,13 +487,11 @@ EngGradientFill(
|
||||||
ULONG i;
|
ULONG i;
|
||||||
BOOL ret = FALSE;
|
BOOL ret = FALSE;
|
||||||
|
|
||||||
if (!pco)
|
/* Check for NULL clip object */
|
||||||
|
if (pco == NULL)
|
||||||
{
|
{
|
||||||
pco = IntEngCreateClipRegion(0, 0, prclExtents);
|
/* Use the trivial one instead */
|
||||||
if (!pco)
|
pco = &gxcoTrivial.ClipObj;
|
||||||
{
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch(ulMode)
|
switch(ulMode)
|
||||||
|
|
Loading…
Reference in a new issue