LibsocialwebTest: don't try to keep ownership of name through tear_down()
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 15 Mar 2013 15:35:51 +0000 (15:35 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 20 Mar 2013 11:48:25 +0000 (11:48 +0000)
commitaa81aee77a19b0decb61df453f322fc78405e7d7
tree313e86b6d03cbfec952eb7b309de3e1287988b70
parent49bc02747babed6d94119b2222c5072a9716d4af
LibsocialwebTest: don't try to keep ownership of name through tear_down()

This is a step towards replacing with-session-bus*.sh with GTestDBus,
which cleans up our D-Bus connection while the test is still running.
If we do that without this change, then the NameLost callback is triggered
when we get disconnected from D-Bus, causing an assertion failure.

This also should reduce circular references, by making sure closures
that contain "this" get cleaned up.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=690830
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Philip Withnall <philip@tecnocode.co.uk>
tests/lib/libsocialweb/backend.vala