From ee95916749ae978b01f3a5dece599d1bc07bddc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Sun, 6 Feb 2011 18:22:11 +0100 Subject: Fix memory leaks in LdDiagramConnection. --- liblogdiag/ld-diagram-connection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/liblogdiag/ld-diagram-connection.c b/liblogdiag/ld-diagram-connection.c index 8eadbf6..a0131f3 100644 --- a/liblogdiag/ld-diagram-connection.c +++ b/liblogdiag/ld-diagram-connection.c @@ -186,6 +186,7 @@ ld_diagram_connection_get_points (LdDiagramConnection *self) if (read_point_node (iter->data, &points->points[points->length])) points->length++; } + g_list_free (point_node_list); return points; } @@ -283,7 +284,7 @@ ld_diagram_connection_set_points (LdDiagramConnection *self, action_data->old_node = node ? json_node_copy (node) : NULL; node = json_node_new (JSON_NODE_ARRAY); - json_node_set_array (node, array); + json_node_take_array (node, array); action_data->new_node = json_node_copy (node); json_object_set_member (storage, "points", node); -- cgit v1.2.3