diff --git a/libfreerdp/cache/offscreen.c b/libfreerdp/cache/offscreen.c index 93fb08e1d..a07012d6d 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; }