[gimp] file-jpeg: unref GeglBuffer in case of a problem
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] file-jpeg: unref GeglBuffer in case of a problem
- Date: Mon, 13 May 2013 06:17:12 +0000 (UTC)
commit b6a2d458219e4acad10c8f34338e21fbfef32736
Author: Mukund Sivaraman <muks banu com>
Date: Mon May 13 11:46:52 2013 +0530
file-jpeg: unref GeglBuffer in case of a problem
plug-ins/file-jpeg/jpeg-load.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/file-jpeg/jpeg-load.c b/plug-ins/file-jpeg/jpeg-load.c
index 581e071..8ce8119 100644
--- a/plug-ins/file-jpeg/jpeg-load.c
+++ b/plug-ins/file-jpeg/jpeg-load.c
@@ -85,7 +85,7 @@ load_image (const gchar *filename,
guchar **rowbuf;
GimpImageBaseType image_type;
GimpImageType layer_type;
- GeglBuffer *buffer;
+ GeglBuffer *buffer = NULL;
gint tile_height;
gint scanlines;
gint i, start, end;
@@ -137,6 +137,9 @@ load_image (const gchar *filename,
if (preview)
destroy_preview ();
+ if (buffer)
+ g_object_unref (buffer);
+
return -1;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]