Author: gschneider
Date: Tue Feb 3 13:37:18 2009
New Revision: 39343
URL:
http://svn.reactos.org/svn/reactos?rev=39343&view=rev
Log:
Delete old XLateObj before creating a new one, fixes a mem leak when installing .Net 2.0
Framework
Modified:
trunk/reactos/subsystems/win32/win32k/objects/color.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/color.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/color.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/color.c [iso-8859-1] Tue Feb 3 13:37:18
2009
@@ -539,7 +539,10 @@
// Create the XLATEOBJ for device managed DCs
if(dc->DC_Type != DC_TYPE_MEMORY)
{
- // Device managed DC
+ if (palGDI->logicalToSystem != NULL)
+ {
+ EngDeleteXlate(palGDI->logicalToSystem);
+ }
palGDI->logicalToSystem = IntEngCreateXlate(sysMode, palMode, systemPalette,
dc->DcLevel.hpal);
}