[gimp/soc-2011-seamless-clone2] file-exr: Fix a possible crash upon failure



commit caf0d35b7cc0a5d4dfdee11695fbb982c84e9a72
Author: Mukund Sivaraman <muks banu com>
Date:   Sat May 4 14:10:42 2013 +0530

    file-exr: Fix a possible crash upon failure

 plug-ins/file-exr/file-exr.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/file-exr/file-exr.c b/plug-ins/file-exr/file-exr.c
index 4758e91..25007e9 100644
--- a/plug-ins/file-exr/file-exr.c
+++ b/plug-ins/file-exr/file-exr.c
@@ -297,7 +297,8 @@ load_image (const gchar  *filename,
   if (pixels)
     g_free (pixels);
 
-  exr_loader_unref (loader);
+  if (loader)
+    exr_loader_unref (loader);
 
   return status;
 }


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