mirror of https://github.com/godotengine/godot
Merge pull request #2953 from koalefant/png-leak
Fixed leak when saving PNG-s
This commit is contained in:
commit
aaca687d21
|
|
@ -214,6 +214,7 @@ Error ResourceSaverPNG::save_image(const String &p_path, Image &p_img) {
|
||||||
memdelete(f);
|
memdelete(f);
|
||||||
|
|
||||||
/* cleanup heap allocation */
|
/* cleanup heap allocation */
|
||||||
|
png_destroy_write_struct(&png_ptr, &info_ptr);
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue