[ros-diffs] [gschneider] 39343: Delete old XLateObj before creating a new one, fixes a mem leak when installing .Net 2.0 Framework

gschneider at svn.reactos.org gschneider at svn.reactos.org
Tue Feb 3 20:37:19 CET 2009


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/objects/color.c?rev=39343&r1=39342&r2=39343&view=diff
==============================================================================
--- 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);
   }
 



More information about the Ros-diffs mailing list