فهرست منبع

Fixed leak when saving PNG-s

koalefant 9 سال پیش
والد
کامیت
2355e1c3b8
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      drivers/png/resource_saver_png.cpp

+ 1 - 0
drivers/png/resource_saver_png.cpp

@@ -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;
 }
 }