Fix a memory leak when setting default window icon or background image
This commit is contained in:
parent
d5448e6902
commit
11d13c406a
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue