summaryrefslogtreecommitdiff
path: root/ufo/ufo-graph.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-08-20 16:31:55 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-08-20 16:31:55 +0200
commit86653b1d59e017550a48a25faf136b7de5064a1e (patch)
tree6faad07dad159d7c9ed1b7e46a5f5d2072b19840 /ufo/ufo-graph.c
parentf681a23a0280ad4d593ddaea40deeec0e19bd4af (diff)
Fix reference leakage
When expanding the node, only the copies were marked for clean up. This change also adds the originating nodes to the list of nodes that are unreferenced.
Diffstat (limited to 'ufo/ufo-graph.c')
-rw-r--r--ufo/ufo-graph.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ufo/ufo-graph.c b/ufo/ufo-graph.c
index ff5b4e7..434269e 100644
--- a/ufo/ufo-graph.c
+++ b/ufo/ufo-graph.c
@@ -787,6 +787,7 @@ ufo_graph_expand (UfoGraph *graph,
label = ufo_graph_get_edge_label (graph, orig, next);
ufo_graph_connect_nodes (graph, current, copy, label);
graph->priv->copies = g_list_append (graph->priv->copies, copy);
+ graph->priv->copies = g_list_append (graph->priv->copies, next);
current = copy;
}
else {