ofono/gdbus
Lucas De Marchi daca27425f 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.
2012-06-30 10:39:11 +02:00
..
gdbus.h gdbus: remove signature and reply from tables 2012-05-20 02:47:57 -07:00
mainloop.c gdbus: Remove unneeded NEED_DBUS_WATCH_GET_UNIX_FD check 2012-04-16 17:57:08 +02:00
object.c gdbus: Fix incorrectly discarded signals 2012-05-22 20:27:56 +02:00
polkit.c gdbus: Update copyright information 2011-01-01 17:32:29 -08:00
watch.c gdbus: Fix removal of filter after last filter_data 2012-06-30 10:39:11 +02:00