Commit 8277ac3f authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 24ac8c66
......@@ -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;
}
/***********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment