[gimp/gimp-2-6] file-cel: close file on error



commit 9eccd56195806c6db32ef79bd486dde7ec3cafb6
Author: Nils Philippsen <nils redhat com>
Date:   Fri Jul 13 15:47:16 2012 +0200

    file-cel: close file on error

 plug-ins/common/file-cel.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/common/file-cel.c b/plug-ins/common/file-cel.c
index 39d2d7b..3357561 100644
--- a/plug-ins/common/file-cel.c
+++ b/plug-ins/common/file-cel.c
@@ -427,6 +427,7 @@ load_image (const gchar  *file,
   if (image == -1)
     {
       g_set_error (error, 0, 0, _("Can't create a new image"));
+      fclose (fp);
       return -1;
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]