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.

svn path=/trunk/; revision=50363
This commit is contained in:
Timo Kreuzer 2011-01-12 01:01:30 +00:00
parent 9e27e5706e
commit 8119453d37

View file

@ -1541,6 +1541,7 @@ DIB_CreateDIBSection(
bmp->dwOffset = offset;
bmp->flags = API_BITMAP;
bmp->biClrImportant = bi->biClrImportant;
bmp->SurfObj.fjBitmap &= ~BMF_DONT_FREE;
/* HACK */
if(hpal != (HPALETTE)0xFFFFFFFF)