dbus: Fix connection idxset freeing when unloading the module.
authorTanu Kaskinen <tanu.kaskinen@digia.com>
Fri, 29 Apr 2011 10:58:42 +0000 (13:58 +0300)
committerColin Guthrie <colin@mageia.org>
Fri, 29 Apr 2011 11:38:28 +0000 (12:38 +0100)
commit7055694023a9feffb5591d51f823794216b3d2b2
treedce412615f77bc74c2aff67699a3207ee57121e4
parent2ee398fd94fd9bbfaff61d0743c945f0a3411fa8
dbus: Fix connection idxset freeing when unloading the module.

If u->connections isn't empty when module-dbus-protocol is
unloaded, then connection_free() is called for the
remaining connections when the idxset is freed.
connection_free() tries to remove the connection from the
idxset, but that fails, because the item has already been
removed from the idxset in this scenario.

The problem is solved by not trying to remove the connection
from the idxset in connection_free(). Instead, whoever wants
to delete connections, has to remove the connection from the
idxset in addition to calling connection_free().
src/modules/dbus/module-dbus-protocol.c