mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 12:23:31 +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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user