cache: Use Bitmap_Free instead of free
authorOndrej Holy <oholy@redhat.com>
Tue, 5 Sep 2017 08:25:15 +0000 (10:25 +0200)
committerOndrej Holy <oholy@redhat.com>
Thu, 7 Sep 2017 07:38:44 +0000 (09:38 +0200)
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

libfreerdp/cache/offscreen.c

index 93fb08e..a07012d 100644 (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;
        }