Properly release resources used by bgimage

Also allow per OS Window bg images in the future
This commit is contained in:
Kovid Goyal
2020-01-31 12:17:54 +05:30
parent 8e7b8b70dc
commit fdd7fe1948
5 changed files with 32 additions and 26 deletions

View File

@@ -59,6 +59,7 @@ typedef struct {
uint32_t texture_id;
unsigned int height, width;
uint8_t* bitmap;
bool load_failed, needs_free;
} BackgroundImage;
typedef struct {