From: Ondrej Holy Date: Tue, 5 Sep 2017 08:25:15 +0000 (+0200) Subject: cache: Use Bitmap_Free instead of free X-Git-Tag: 2.0.0-rc1~86^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e9ffff56bcf3b07513cc3aa063977c75f197134b;p=platform%2Fupstream%2Ffreerdp.git 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 --- diff --git a/libfreerdp/cache/offscreen.c b/libfreerdp/cache/offscreen.c index 93fb08e..a07012d 100644 --- a/libfreerdp/cache/offscreen.c +++ b/libfreerdp/cache/offscreen.c @@ -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; }