diff options
author | Ted Gould <ted@gould.cx> | 2011-07-07 10:19:32 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-07-07 10:19:32 -0500 |
commit | 3640e44551d104d19b14c99a771d92f7a9fbb826 (patch) | |
tree | 5f54720faf211e106532692077d8f29b935ee95c | |
parent | 2902ab6999b56ac01fc07ce529018dfa467ca80b (diff) | |
download | ayatana-indicator-application-3640e44551d104d19b14c99a771d92f7a9fbb826.tar.gz ayatana-indicator-application-3640e44551d104d19b14c99a771d92f7a9fbb826.tar.bz2 ayatana-indicator-application-3640e44551d104d19b14c99a771d92f7a9fbb826.zip |
Making sure to unref() the result if we get one.
-rw-r--r-- | tests/test-approver.c | 5 |
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); |