summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--amiga/bitmap.c9
-rwxr-xr-xamiga/plotters.c2
2 files changed, 8 insertions, 3 deletions
diff --git a/amiga/bitmap.c b/amiga/bitmap.c
index c82c90bc8..0190ed0b3 100644
--- a/amiga/bitmap.c
+++ b/amiga/bitmap.c
@@ -117,10 +117,15 @@ void bitmap_destroy(void *bitmap)
if(bm)
{
- if((bm->nativebm) && (bm->dto == NULL))
+ if((bm->nativebm) && (bm->dto == NULL)) {
p96FreeBitMap(bm->nativebm);
+ bm->nativebm = NULL;
+ }
- if(bm->dto) DisposeDTObject(bm->dto);
+ if(bm->dto) {
+ DisposeDTObject(bm->dto);
+ bm->dto = NULL;
+ }
FreeVec(bm->pixdata);
bm->pixdata = NULL;
diff --git a/amiga/plotters.c b/amiga/plotters.c
index cdd5aac7a..e784e5cdb 100755
--- a/amiga/plotters.c
+++ b/amiga/plotters.c
@@ -686,7 +686,7 @@ static bool ami_bitmap(int x, int y, int width, int height, struct bitmap *bitma
} else {
tag = BLITA_MaskPlane;
tag_data = (ULONG)bitmap->native_mask;
- minterm = 0xc0; /* Should be (ABC|ABNC|ANBC) */
+ minterm = 0xc0; /* should be (ABC|ABNC|ANBC); */
}
BltBitMapTags(BLITA_Width,width,