[gegl] gegl: don't leak the swapdir in gegl_config_set_defaults()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gegl: don't leak the swapdir in gegl_config_set_defaults()
- Date: Mon, 6 Oct 2014 17:45:51 +0000 (UTC)
commit d8c6019f306d01569aee7822528ef388facae521
Author: Michael Natterer <mitch gimp org>
Date: Mon Oct 6 19:45:28 2014 +0200
gegl: don't leak the swapdir in gegl_config_set_defaults()
gegl/gegl-init.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gegl/gegl-init.c b/gegl/gegl-init.c
index 2afd95a..c19a0d3 100644
--- a/gegl/gegl-init.c
+++ b/gegl/gegl-init.c
@@ -322,6 +322,8 @@ static void gegl_config_set_defaults (GeglConfig *config)
g_object_set (config,
"swap", swapdir,
NULL);
+
+ g_free (swapdir);
}
static void gegl_config_parse_env (GeglConfig *config)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]