mirror of
https://github.com/godotengine/godot.git
synced 2024-09-21 06:52:33 +00:00
Fixed leak when saving PNG-s
This commit is contained in:
parent
b0dbcccb6c
commit
2355e1c3b8
|
@ -214,6 +214,7 @@ Error ResourceSaverPNG::save_image(const String &p_path, Image &p_img) {
|
|||
memdelete(f);
|
||||
|
||||
/* cleanup heap allocation */
|
||||
png_destroy_write_struct(&png_ptr, &info_ptr);
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user