Author: tkreuzer
Date: Wed Jan 12 01:01:30 2011
New Revision: 50363
URL:
http://svn.reactos.org/svn/reactos?rev=50363&view=rev
Log:
[WIN32K]
Don't leak the memory for DIB sections. we set BMF_DONT_FREE in
SURFACE_bSetBitmapBits, when the caller provides bits. This needs to be reconsidered.
Modified:
trunk/reactos/subsystems/win32/win32k/objects/dibobj.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/dibobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dibobj.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dibobj.c [iso-8859-1] Wed Jan 12
01:01:30 2011
@@ -1541,6 +1541,7 @@
bmp->dwOffset = offset;
bmp->flags = API_BITMAP;
bmp->biClrImportant = bi->biClrImportant;
+ bmp->SurfObj.fjBitmap &= ~BMF_DONT_FREE;
/* HACK */
if(hpal != (HPALETTE)0xFFFFFFFF)