mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-10 18:48:54 +02:00
Freeing bgimage should always null its pointer
This commit is contained in:
@@ -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*
|
||||
|
||||
Reference in New Issue
Block a user