Freeing bgimage should always null its pointer
This commit is contained in:
parent
5fe4d10f38
commit
72af821e1b
1 changed files with 1 additions and 1 deletions
|
|
@ -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*
|
||||
|
|
|
|||
Loading…
Reference in a new issue