aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2011-07-09 04:23:00 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2011-07-09 04:23:00 +0200
commit81714fdde37c70d298f65dba56ebb3c069e6d139 (patch)
tree9f2a0e6b7a84510aaf51da57ee3a6e15e54e0b4a /tests
parent62c7490c8d18ed4f4e0c7b4ab63d518e12cbd168 (diff)
parentb7c636a4390588001b7a2214d2db9cef086f04e8 (diff)
downloadayatana-indicator-application-81714fdde37c70d298f65dba56ebb3c069e6d139.tar.gz
ayatana-indicator-application-81714fdde37c70d298f65dba56ebb3c069e6d139.tar.bz2
ayatana-indicator-application-81714fdde37c70d298f65dba56ebb3c069e6d139.zip
Merge with upstream
Diffstat (limited to 'tests')
-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);