[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, 10 Nov 2015 19:35:27 +0000 (UTC)
commit d1c236d18253589207b6d0f7dd77d5a8341d3a74
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 13a49dc..1604683 100644
--- a/app/xcf/xcf-save.c
+++ b/app/xcf/xcf-save.c
@@ -1092,6 +1092,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]