From 58e6c9ad4d2cbb8bedf506531e401204de75b936 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Sat, 27 Oct 2007 20:34:32 +0000 Subject: [PATCH] close the file handle. 2007-10-27 Sven Neumann * app/widgets/gimpwidgets-utils.c (gimp_text_buffer_load): close the file handle. svn path=/trunk/; revision=23978 --- ChangeLog | 5 +++++ app/widgets/gimpwidgets-utils.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 25f05c3167..42daf7a2dc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-10-27 Sven Neumann + + * app/widgets/gimpwidgets-utils.c (gimp_text_buffer_load): close + the file handle. + 2007-10-27 Sven Neumann * libgimpbase/gimpmemsize.c (string_to_memsize): don't just crash diff --git a/app/widgets/gimpwidgets-utils.c b/app/widgets/gimpwidgets-utils.c index 4bad87454a..531f8c1959 100644 --- a/app/widgets/gimpwidgets-utils.c +++ b/app/widgets/gimpwidgets-utils.c @@ -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; }