[gimp/multi-stroke: 8/31] app: GeglBuffer leaked on XCF load.
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/multi-stroke: 8/31] app: GeglBuffer leaked on XCF load.
- Date: Tue, 20 Oct 2015 00:33:23 +0000 (UTC)
commit 066bd70d0abd564b072471b4fde1ed344e800fd1
Author: Jehan <jehan girinstud io>
Date: Sat Mar 21 19:22:20 2015 +0100
app: GeglBuffer leaked on XCF load.
app/xcf/xcf-load.c | 3 +++
app/xcf/xcf-save.c | 1 +
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/app/xcf/xcf-load.c b/app/xcf/xcf-load.c
index 0008368..96225b7 100644
--- a/app/xcf/xcf-load.c
+++ b/app/xcf/xcf-load.c
@@ -772,6 +772,7 @@ xcf_load_image_props (XcfInfo *info,
}
mstroke = gimp_multi_stroke_new (type, image);
gimp_image_add_multi_stroke (image, mstroke);
+ g_object_unref (mstroke);
settings = gimp_multi_stroke_get_xcf_settings (mstroke,
&nsettings);
@@ -856,6 +857,8 @@ xcf_load_image_props (XcfInfo *info,
return FALSE;
}
}
+ g_free (settings);
+
if (active == i)
active_mstroke = mstroke;
}
diff --git a/app/xcf/xcf-save.c b/app/xcf/xcf-save.c
index e5c83b8..1ccaa4f 100644
--- a/app/xcf/xcf-save.c
+++ b/app/xcf/xcf-save.c
@@ -1089,6 +1089,7 @@ xcf_save_prop (XcfInfo *info,
return FALSE;
}
}
+ g_free (settings);
}
size = info->cp - base;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]