Module: wine Branch: master Commit: 8277ac3f7cb670c8c2bc64310f3d384089a765ff URL: http://source.winehq.org/git/wine.git/?a=commit;h=8277ac3f7cb670c8c2bc64310f...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Nov 3 12:49:46 2011 +0100
gdi32: Don't free bitmap bits when changing the owner, we may still have pointers to them.
---
dlls/gdi32/bitmap.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/dlls/gdi32/bitmap.c b/dlls/gdi32/bitmap.c index 8aea89c..a158735 100644 --- a/dlls/gdi32/bitmap.c +++ b/dlls/gdi32/bitmap.c @@ -574,8 +574,6 @@ static void set_initial_bitmap_bits( HBITMAP hbitmap, BITMAPOBJ *bmp )
get_ddb_bitmapinfo( bmp, info ); SetDIBits( 0, hbitmap, 0, bmp->bitmap.bmHeight, bmp->bitmap.bmBits, info, DIB_RGB_COLORS ); - HeapFree( GetProcessHeap(), 0, bmp->bitmap.bmBits ); - bmp->bitmap.bmBits = NULL; }
/***********************************************************************