aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-07-07 15:31:41 -0500
committerTed Gould <ted@gould.cx>2011-07-07 15:31:41 -0500
commit457dd74bc8752065e9558f5a67a50635a06b8ffc (patch)
tree0a159b379a31e09eac81431d7bf578d99379395d /tests
parent3eea1be84b1c47bdf682c25a80851a4cacec4bd2 (diff)
parent75eadfd9da49640b5ee5d8da60b378d5ba9aa57d (diff)
downloadayatana-indicator-application-457dd74bc8752065e9558f5a67a50635a06b8ffc.tar.gz
ayatana-indicator-application-457dd74bc8752065e9558f5a67a50635a06b8ffc.tar.bz2
ayatana-indicator-application-457dd74bc8752065e9558f5a67a50635a06b8ffc.zip
Import upstream version 0.3.91
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.in6
-rw-r--r--tests/test-approver.c5
2 files changed, 7 insertions, 4 deletions
diff --git a/tests/Makefile.in b/tests/Makefile.in
index b7e985e..1c51acd 100644
--- a/tests/Makefile.in
+++ b/tests/Makefile.in
@@ -37,10 +37,8 @@ check_PROGRAMS = test-approver$(EXEEXT)
subdir = tests
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
- $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
- $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
- $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
+am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
+ $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
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);