NULL drawhandle after free

This commit is contained in:
Chris Young 2019-06-09 19:29:56 +01:00
parent e82107a296
commit 7314651b95
1 changed files with 1 additions and 0 deletions

View File

@ -546,6 +546,7 @@ static inline struct BitMap *ami_bitmap_get_generic(struct bitmap *bitmap,
DirectDrawTrueColor(ddh, (ULONG *)amiga_bitmap_get_buffer(bitmap), 0, 0, TAG_DONE);
DeleteDirectDrawHandle(ddh);
ReleaseDrawHandle(bitmap->drawhandle);
bitmap->drawhandle = NULL;
}
ami_bitmap_argb_to_rgba(bitmap);
} else {