summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2021-05-17 16:45:49 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2021-05-17 16:45:49 +0100
commita6e825833d5ad2f79ed12aedbcb75773de52ca43 (patch)
tree3fbd05fdde32d692722500a0ef4076767c084caa
parent38fc60486b8862b65d0694de6d3463f62fd3c462 (diff)
downloadnetsurf-a6e825833d5ad2f79ed12aedbcb75773de52ca43.tar.gz
netsurf-a6e825833d5ad2f79ed12aedbcb75773de52ca43.tar.bz2
Amiga: BitMap always alloced with the ami_rtg_ function, so should be freed with it too.
-rw-r--r--frontends/amiga/plotters.c6
1 files changed, 1 insertions, 5 deletions
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);