mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 12:02:32 +00:00
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:
parent
d118a54683
commit
58e6c9ad4d
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue