diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2015-08-20 16:31:55 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2015-08-20 16:31:55 +0200 |
commit | 86653b1d59e017550a48a25faf136b7de5064a1e (patch) | |
tree | 6faad07dad159d7c9ed1b7e46a5f5d2072b19840 /ufo/ufo-graph.c | |
parent | f681a23a0280ad4d593ddaea40deeec0e19bd4af (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.c | 1 |
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 { |