GDBusConnection: Use correct GMainContext when invoking free functions
commit7036415cc1a32bbd9cc08e516196dbd704f8b5eb
authorDavid Zeuthen <davidz@redhat.com>
Thu, 23 Sep 2010 21:23:30 +0000 (23 17:23 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Thu, 23 Sep 2010 21:36:07 +0000 (23 17:36 -0400)
treefca52adcf4862774cca6ce0353b2246a8d865cf0
parent919f64acab8a0bfb1262f3df1cdda4383054e0f1
GDBusConnection: Use correct GMainContext when invoking free functions

Without this fix, the ./gdbus-connection test case occasionally fails, see

 https://bugzilla.gnome.org/show_bug.cgi?id=629945#c5

like this

 /gdbus/connection/basic: OK
 /gdbus/connection/life-cycle: **
ERROR:gdbus-connection.c:223:test_connection_life_cycle: assertion failed:
(!quit_mainloop_fired)
 cleaning up bus with pid 21794
 Aborted (core dumped)

because the callback didn't happen on the same thread as where we are
running the loop.

Signed-off-by: David Zeuthen <davidz@redhat.com>
gio/gdbusconnection.c
gio/tests/gdbus-connection.c