From: dooglus Date: Sat, 13 Oct 2007 22:03:03 +0000 (+0000) Subject: The code documents an unexplained crash in libpng, but was also leaking filehandles... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0b7b0f0bcd16daf2d31a1bdec0e76c132bda801f;hp=4ad59d2413eccb35b0964a5b908807a4a213d26f;p=synfig.git 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 --- 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; }