mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 10:46:58 +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;
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue