mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-10 18:48:54 +02:00
Fix a memory leak when setting default window icon or background image
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user