aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
}