mirror of https://github.com/FreeRDP/FreeRDP
cache: Use Bitmap_Free instead of free
Bitmap_Alloc is used to allocate memory of bitmap, Bitmap_Free should be used to release that memory. Let's change free to Bitmap_Free. https://github.com/FreeRDP/FreeRDP/issues/4117
This commit is contained in:
parent
9cccd4888d
commit
e9ffff56bc
|
@ -60,7 +60,7 @@ static BOOL update_gdi_create_offscreen_bitmap(rdpContext* context,
|
|||
|
||||
if (!bitmap->New(context, bitmap))
|
||||
{
|
||||
free(bitmap);
|
||||
Bitmap_Free(context, bitmap);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue