diff options
author | koalefant <mandarin.cake@gmail.com> | 2015-11-29 20:10:14 +0100 |
---|---|---|
committer | koalefant <mandarin.cake@gmail.com> | 2015-11-29 20:11:42 +0100 |
commit | 2355e1c3b8dfa14ca18dfc9ce442fdeb60926110 (patch) | |
tree | ae2d438e8cb26fa80944e861524c07e5b0bf4594 /drivers/png | |
parent | b0dbcccb6c430cdf8a8f050676427f2414037ef7 (diff) |
Fixed leak when saving PNG-s
Diffstat (limited to 'drivers/png')
-rw-r--r-- | drivers/png/resource_saver_png.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/png/resource_saver_png.cpp b/drivers/png/resource_saver_png.cpp index 76e0c03c46..581efb5adc 100644 --- a/drivers/png/resource_saver_png.cpp +++ b/drivers/png/resource_saver_png.cpp @@ -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; } |