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:
Timo Kreuzer 2014-05-01 09:59:01 +00:00
parent a45e440cac
commit b1e9d59ae3

View file

@ -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)