aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-03-11 15:53:30 -0600
committerTed Gould <ted@gould.cx>2011-03-11 15:53:30 -0600
commitd3c5e2540937720b15b542092cfccf924c7487aa (patch)
tree2cbe62adcc65309d74aa082e1692f49692fb1b6b
parentc892f84845aeb7367c9246a679a21da09ebafd2c (diff)
downloadayatana-indicator-application-d3c5e2540937720b15b542092cfccf924c7487aa.tar.gz
ayatana-indicator-application-d3c5e2540937720b15b542092cfccf924c7487aa.tar.bz2
ayatana-indicator-application-d3c5e2540937720b15b542092cfccf924c7487aa.zip
A couple memory leaks
-rw-r--r--src/indicator-application.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/indicator-application.c b/src/indicator-application.c
index f9b200b..eabbf54 100644
--- a/src/indicator-application.c
+++ b/src/indicator-application.c
@@ -835,13 +835,17 @@ get_applications (GObject * obj, GAsyncResult * res, gpointer user_data)
if (error != NULL) {
g_warning("Unable to get application list: %s", error->message);
+ g_error_free(error);
return;
}
g_variant_get(result, "(a(sisossss))", &iter);
- while ((child = g_variant_iter_next_value (iter)))
+ while ((child = g_variant_iter_next_value (iter))) {
get_applications_helper(self, child);
+ g_variant_unref(child);
+ }
g_variant_iter_free (iter);
+ g_variant_unref(result);
return;
}