From: Holger Schemel Date: Fri, 5 Mar 2021 08:24:23 +0000 (+0100) Subject: added freeing bitmap (potentially replaced after scaling up) X-Git-Tag: 4.3.0.0~216 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=4c932cc05644fcd223bdb1b1f4706dcfdd8c7939;p=rocksndiamonds.git added freeing bitmap (potentially replaced after scaling up) --- diff --git a/src/libgame/system.c b/src/libgame/system.c index 12215ef9..a782ed8d 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -1479,6 +1479,9 @@ static void CreateScaledBitmaps(Bitmap **bitmaps, int zoom_factor, // set original bitmap pointer to corresponding sized bitmap bitmaps[IMG_BITMAP_PTR_ORIGINAL] = bitmaps[IMG_BITMAP_32x32]; + + if (old_bitmap != tmp_bitmap_1) + FreeBitmap(old_bitmap); } UPDATE_BUSY_STATE();