diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2012-06-25 12:44:40 -0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-06-30 10:39:11 +0200 |
commit | daca27425f30083b1045ce4b6b0c07e053a8748a (patch) | |
tree | d82a0f5277ea9519e59e4f5a9b16e4d3950ad79c /gisi/common.h | |
parent | 57fe0bcfb11f866df170493a351c5544634d9633 (diff) | |
download | ofono-daca27425f30083b1045ce4b6b0c07e053a8748a.tar.bz2 |
gdbus: Fix removal of filter after last filter_data
If there's a signal watch that's also watching for name
(data->name_watch) currently we are trying to remove the message_filter
twice since we may have the following call chain:
filter_data_remove_callback()
filter_data_free()
g_dbus_remove_watch()
filter_data_remove_callback()
filter_data_free()
dbus_connection_remove_filter()
dbus_connection_remove_filter()
Because of this we can't currently watch for signals passing the bus
name. After this patch we don't have this issue anymore.
We fix it by removing the filter before calling filter_data_free() if we
are the last filter_data and thus avoid calling
dbus_connection_remove_filter() twice.
Diffstat (limited to 'gisi/common.h')
0 files changed, 0 insertions, 0 deletions