Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-updates-src > by-pkgid > c5a7c80427d14ec72de12dc253c65ba2 > files > 7

gimp-2.6.11-7.2.mga1.src.rpm

From 49c1af36b360ba85c86f71509fcba77eef7c6f22 Mon Sep 17 00:00:00 2001
From: Nils Philippsen <nils@redhat.com>
Date: Fri, 13 Jul 2012 15:47:16 +0200
Subject: [PATCH 5/5] file-cel: close file on error

---
 plug-ins/common/file-cel.c |    1 +
 1 file changed, 1 insertion(+)

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;
     }
 
-- 
1.7.10.4