diff options
author | Tanu Kaskinen <tanu.kaskinen@digia.com> | 2011-04-29 13:58:42 +0300 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2011-04-29 12:38:28 +0100 |
commit | 7055694023a9feffb5591d51f823794216b3d2b2 (patch) | |
tree | dce412615f77bc74c2aff67699a3207ee57121e4 /src/tests/channelmap-test.c | |
parent | 2ee398fd94fd9bbfaff61d0743c945f0a3411fa8 (diff) |
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().
Diffstat (limited to 'src/tests/channelmap-test.c')
0 files changed, 0 insertions, 0 deletions