From a6e825833d5ad2f79ed12aedbcb75773de52ca43 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Mon, 17 May 2021 16:45:49 +0100 Subject: Amiga: BitMap always alloced with the ami_rtg_ function, so should be freed with it too. --- frontends/amiga/plotters.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'frontends/amiga') diff --git a/frontends/amiga/plotters.c b/frontends/amiga/plotters.c index b6add47cb..215c5ebaf 100644 --- a/frontends/amiga/plotters.c +++ b/frontends/amiga/plotters.c @@ -257,11 +257,7 @@ void ami_plot_ra_free(struct gui_globals *gg) ami_memory_chip_free(gg->tmprasbuf); free(gg->areabuf); DisposeLayerInfo(gg->layerinfo); - if(gg->palette_mapped == false) { - if(gg->bm) ami_rtg_freebitmap(gg->bm); - } else { - if(gg->bm) FreeBitMap(gg->bm); - } + if(gg->bm) ami_rtg_freebitmap(gg->bm); if(gg->managed_pen_list == true) { ami_plot_release_pens(gg->shared_pens); -- cgit v1.2.3