mirror of
https://github.com/reactos/reactos.git
synced 2024-08-08 04:08:29 +00:00
[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. svn path=/trunk/; revision=50363
This commit is contained in:
parent
9e27e5706e
commit
8119453d37
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue