Unset/free also windows user function, finalizing the connection
authorCosimo Alfarano <cosimo.alfarano@collabora.com>
Tue, 11 Oct 2011 15:41:31 +0000 (16:41 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Thu, 22 Aug 2013 22:17:40 +0000 (00:17 +0200)
It's currently not used, but it's safer to unset it and free user's
data for avoiding future head-aches

https://bugs.freedesktop.org/show_bug.cgi?id=39720
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
dbus/dbus-connection.c

index a471ea6..51c0a25 100644 (file)
@@ -2707,6 +2707,7 @@ _dbus_connection_last_unref (DBusConnection *connection)
   dbus_connection_set_dispatch_status_function (connection, NULL, NULL, NULL);
   dbus_connection_set_wakeup_main_function (connection, NULL, NULL, NULL);
   dbus_connection_set_unix_user_function (connection, NULL, NULL, NULL);
+  dbus_connection_set_windows_user_function (connection, NULL, NULL, NULL);
   
   _dbus_watch_list_free (connection->watches);
   connection->watches = NULL;