[gimp/multi-stroke: 8/30] 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/30] app: GeglBuffer leaked on XCF load.
- Date: Wed, 10 Jun 2015 17:39:18 +0000 (UTC)
commit 007e1827370819087c2164c0970f0bd2005a1821
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 9603db1..bf8a0cc 100644
--- a/app/xcf/xcf-load.c
+++ b/app/xcf/xcf-load.c
@@ -759,6 +759,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);
@@ -843,6 +844,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 a15fa5a..1f5121a 100644
--- a/app/xcf/xcf-save.c
+++ b/app/xcf/xcf-save.c
@@ -1053,6 +1053,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]