Make sure memory will be freed on delete of DIB section
authorGé van Geldorp <ge@gse.nl>
Wed, 7 Sep 2005 17:54:47 +0000 (17:54 +0000)
committerGé van Geldorp <ge@gse.nl>
Wed, 7 Sep 2005 17:54:47 +0000 (17:54 +0000)
svn path=/trunk/; revision=17725

reactos/subsys/win32k/objects/dib.c

index 247ed67..60a3cc4 100644 (file)
@@ -923,6 +923,7 @@ DIB_CreateDIBSection(
        return NULL;
       }
     bmp->dib = (DIBSECTION *) dib;
+    bmp->flFlags = BITMAPOBJ_IS_APIBITMAP;
 
     /* WINE NOTE: WINE makes use of a colormap, which is a color translation table between the DIB and the X physical
                   device. Obviously, this is left out of the ReactOS implementation. Instead, we call