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:
Ondrej Holy 2017-09-05 10:25:15 +02:00
parent 9cccd4888d
commit e9ffff56bc
1 changed files with 1 additions and 1 deletions

View File

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