gdi32: Don't free bitmap bits when changing the owner, we may still have pointers to them.

This commit is contained in:
Alexandre Julliard 2011-11-03 12:49:46 +01:00
parent 24ac8c66bb
commit 8277ac3f7c
1 changed files with 0 additions and 2 deletions

View File

@ -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;
}
/***********************************************************************