projects
/
platform
/
core
/
uifw
/
at-spi2-atk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f4f2f1
)
droute: Fix another memory few memory leaks
author
Jasper St. Pierre
<jstpierre@mecheye.net>
Sat, 8 Dec 2012 08:21:08 +0000
(
03:21
-0500)
committer
Jasper St. Pierre
<jstpierre@mecheye.net>
Sat, 8 Dec 2012 08:35:45 +0000
(
03:35
-0500)
We need to free the pointer array here, along with the path.
https://bugzilla.gnome.org/show_bug.cgi?id=689887
droute/droute.c
patch
|
blob
|
history
diff --git
a/droute/droute.c
b/droute/droute.c
index
0a0bfd6
..
82eea8f
100644
(file)
--- 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);
}