summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-05-12 14:28:09 +0200
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-09-17 14:13:46 +0100
commitfa2c39466d796cecf81caceb46051d214c664cc3 (patch)
tree9fb8646243435b93eddd9490d2d17b9ab37a49ad
parent1ad31f448204fcbaa2dc75ee38391bceefa462d1 (diff)
downloadtelepathy-glib-fa2c39466d796cecf81caceb46051d214c664cc3.tar.gz
test-base-client: unregister the client before destroying it
Prevent a warning from tp_base_client_dispose() if the client didn't notice that its channels are gone and so complain it's still handling them. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=77882 Reviewed-by: Simon McVittie
-rw-r--r--tests/dbus/base-client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/dbus/base-client.c b/tests/dbus/base-client.c
index caa904e6c..3c5b82b1b 100644
--- a/tests/dbus/base-client.c
+++ b/tests/dbus/base-client.c
@@ -241,6 +241,7 @@ teardown (Test *test,
tp_dbus_connection_release_name (test->dbus, TP_CHANNEL_DISPATCHER_BUS_NAME,
NULL);
+ tp_base_client_unregister (test->base_client);
g_object_unref (test->base_client);
g_object_unref (test->client);