[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: Thu, 8 Oct 2015 19:03:36 +0000 (UTC)
commit 5fefd0f02f78415cd1ef9f5e69d92d30774ce97a
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 7abf51a..ef68599 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 f0c3ce2..6ebda18 100644
--- a/app/xcf/xcf-save.c
+++ b/app/xcf/xcf-save.c
@@ -1072,6 +1072,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]