Fix a memory leak when setting default window icon or background image

This commit is contained in:
Kovid Goyal 2021-04-03 06:37:57 +05:30
parent d5448e6902
commit 11d13c406a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -333,6 +333,7 @@ png_path_to_bitmap(const char* path, uint8_t** data, unsigned int* width, unsign
return false;
}
*data = d.decompressed;
free(d.row_pointers);
*sz = d.sz;
*height = d.height; *width = d.width;
return true;