summaryrefslogtreecommitdiff
path: root/droute
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2012-12-08 03:21:08 -0500
committerJasper St. Pierre <jstpierre@mecheye.net>2012-12-08 03:35:45 -0500
commit87be4982ef114dd00cc8d8ee5687e890d06b3420 (patch)
treead5422c34c160afc7b95cdc229ddd7be1e72276e /droute
parent4f4f2f1cccb0b019b982521e5e300ac9490915bb (diff)
downloadat-spi2-atk-87be4982ef114dd00cc8d8ee5687e890d06b3420.tar.gz
droute: Fix another memory few memory leaks
We need to free the pointer array here, along with the path. https://bugzilla.gnome.org/show_bug.cgi?id=689887
Diffstat (limited to 'droute')
-rw-r--r--droute/droute.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/droute/droute.c b/droute/droute.c
index 0a0bfd6..82eea8f 100644
--- a/droute/droute.c
+++ b/droute/droute.c
@@ -126,6 +126,7 @@ path_free (DRoutePath *path, gpointer user_data)
g_free(g_ptr_array_free (path->introspection, FALSE));
g_hash_table_destroy (path->methods);
g_hash_table_destroy (path->properties);
+ g_free (path);
}
static void *
@@ -154,6 +155,7 @@ void
droute_free (DRouteContext *cnx)
{
g_ptr_array_foreach (cnx->registered_paths, (GFunc) path_free, NULL);
+ g_ptr_array_free (cnx->registered_paths, TRUE);
g_free (cnx);
}