aboutsummaryrefslogtreecommitdiff
path: root/tests/test-approver.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-07-07 15:25:23 -0500
committerTed Gould <ted@gould.cx>2011-07-07 15:25:23 -0500
commit3d3beb6eedf8f69e3cf47ed7b99208ca904d6a6e (patch)
tree5e8123d6aa706d2c92227f97623f093e4b4239c7 /tests/test-approver.c
parent1af03e83910b6005ddfb9b1f71677f02db9cfe2b (diff)
parent510e1e13fafca7393baa20f5afa4567b87c2d224 (diff)
downloadayatana-indicator-application-3d3beb6eedf8f69e3cf47ed7b99208ca904d6a6e.tar.gz
ayatana-indicator-application-3d3beb6eedf8f69e3cf47ed7b99208ca904d6a6e.tar.bz2
ayatana-indicator-application-3d3beb6eedf8f69e3cf47ed7b99208ca904d6a6e.zip
Putting in name hints for the indicators
Diffstat (limited to 'tests/test-approver.c')
-rw-r--r--tests/test-approver.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test-approver.c b/tests/test-approver.c
index 6fc75c5..bacdc67 100644
--- a/tests/test-approver.c
+++ b/tests/test-approver.c
@@ -149,6 +149,11 @@ register_cb (GObject *object, GAsyncResult *res, gpointer user_data)
result = g_dbus_proxy_call_finish(proxy, res, &error);
+ if (result != NULL) {
+ g_variant_unref(result);
+ result = NULL;
+ }
+
if (error != NULL) {
g_warning("Unable to register approver: %s", error->message);
g_error_free(error);