From 0b7b0f0bcd16daf2d31a1bdec0e76c132bda801f Mon Sep 17 00:00:00 2001 From: dooglus Date: Sat, 13 Oct 2007 22:03:03 +0000 Subject: [PATCH] The code documents an unexplained crash in libpng, but was also leaking filehandles. We should close the file handle, or we run out after rendering a few animations which import large .lst files. git-svn-id: http://svn.voria.com/code@924 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/modules/mod_png/mptr_png.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synfig-core/trunk/src/modules/mod_png/mptr_png.cpp b/synfig-core/trunk/src/modules/mod_png/mptr_png.cpp index b485f27..94c036c 100644 --- a/synfig-core/trunk/src/modules/mod_png/mptr_png.cpp +++ b/synfig-core/trunk/src/modules/mod_png/mptr_png.cpp @@ -314,8 +314,8 @@ png_mptr::png_mptr(const char *file_name) /* png_read_end(png_ptr, end_info); png_destroy_read_struct(&png_ptr, &info_ptr, &end_info); - fclose(file); */ + fclose(file); delete [] row_pointers; } -- 2.7.4