From d3c5e2540937720b15b542092cfccf924c7487aa Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 11 Mar 2011 15:53:30 -0600 Subject: A couple memory leaks --- src/indicator-application.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3