close the file handle.

2007-10-27  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpwidgets-utils.c (gimp_text_buffer_load): close
	the file handle.


svn path=/trunk/; revision=23978
This commit is contained in:
Sven Neumann 2007-10-27 20:34:32 +00:00 committed by Sven Neumann
parent d118a54683
commit 58e6c9ad4d
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2007-10-27 Sven Neumann <sven@gimp.org>
* app/widgets/gimpwidgets-utils.c (gimp_text_buffer_load): close
the file handle.
2007-10-27 Sven Neumann <sven@gimp.org>
* libgimpbase/gimpmemsize.c (string_to_memsize): don't just crash

View file

@ -878,6 +878,8 @@ gimp_text_buffer_load (GtkTextBuffer *buffer,
g_message (_("Invalid UTF-8 data in file '%s'."),
gimp_filename_to_utf8 (filename));
fclose (file);
return TRUE;
}