Freeing bgimage should always null its pointer

This commit is contained in:
Kovid Goyal 2020-02-04 09:51:35 +05:30
parent 5fe4d10f38
commit 72af821e1b
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -97,9 +97,9 @@ free_bgimage(BackgroundImage **bgimage, bool release_texture) {
free((*bgimage)->bitmap); (*bgimage)->bitmap = NULL;
if (release_texture) free_texture(&(*bgimage)->texture_id);
free(*bgimage);
bgimage = NULL;
}
}
bgimage = NULL;
}
OSWindow*