From: Simon McVittie Date: Wed, 19 Jan 2011 17:34:10 +0000 (+0000) Subject: test_server_shutdown: disconnect the server before causing it to be freed X-Git-Tag: dbus-1.4.4~13^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9327eba3c163583edef7b76eb3aba134999344d;p=thirdparty%2Fdbus.git test_server_shutdown: disconnect the server before causing it to be freed Otherwise we die with an assertion failure. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33277 --- diff --git a/test/test-utils.c b/test/test-utils.c index 1c78812a0..05cd75352 100644 --- a/test/test-utils.c +++ b/test/test-utils.c @@ -334,6 +334,8 @@ void test_server_shutdown (DBusLoop *loop, DBusServer *server) { + dbus_server_disconnect (server); + if (!dbus_server_set_watch_functions (server, NULL, NULL, NULL, NULL,