Sanity checks in a part of video.c, per Ryuzaki's suggestion.
This commit is contained in:
@@ -776,9 +776,11 @@ set_palette(PALETTE p)
|
||||
void
|
||||
destroy_bitmap(bitmap_t *b)
|
||||
{
|
||||
if (b->dat != NULL)
|
||||
if ((b != NULL) && (b->dat != NULL))
|
||||
free(b->dat);
|
||||
free(b);
|
||||
|
||||
if (b != NULL)
|
||||
free(b);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user