[gegl] graph: fix memory leak spotted by cppcheck
- From: Téo Mazars <teom src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] graph: fix memory leak spotted by cppcheck
- Date: Fri, 8 Nov 2013 14:10:26 +0000 (UTC)
commit 964def003b4d6a9dc680136fbf0f5f3d4be700b2
Author: Téo Mazars <teo mazars ensimag fr>
Date: Fri Nov 8 15:08:34 2013 +0100
graph: fix memory leak spotted by cppcheck
gegl/graph/gegl-node.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gegl/graph/gegl-node.c b/gegl/graph/gegl-node.c
index 68c9599..d4270e4 100644
--- a/gegl/graph/gegl-node.c
+++ b/gegl/graph/gegl-node.c
@@ -1754,7 +1754,7 @@ gegl_node_get_consumers (GeglNode *node,
const gchar *pad_name = gegl_pad_get_name (pad);
const gchar *name = gegl_node_get_name(node);
- const gchar* proxy_name = g_strconcat("proxynop-", pad_name, NULL);
+ gchar* proxy_name = g_strconcat("proxynop-", pad_name, NULL);
if(!strcmp(name, proxy_name))
{
node = g_object_get_data(G_OBJECT(node), "graph");
@@ -1763,6 +1763,7 @@ gegl_node_get_consumers (GeglNode *node,
else
{
}
+ g_free (proxy_name);
if (nodes)
(*nodes)[i] = node;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]