[gimp] file-exr: Fix a possible crash upon failure



commit 7a671d3157a7d2bd84e334c9e84b96c454bdec49
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]