summaryrefslogtreecommitdiff
path: root/atspi/atspi-event-listener.c
diff options
context:
space:
mode:
authorMike Gorse <mgorse@suse.com>2012-07-08 19:35:36 -0500
committerMike Gorse <mgorse@suse.com>2012-07-08 19:35:36 -0500
commit4b3109052e2ef1e6606765c6086c557726602245 (patch)
tree0515002f7840de4720a8402f1e9127f05d31b83e /atspi/atspi-event-listener.c
parent535f1a1be9a7e94cb8ec33877903f814f85242ca (diff)
downloadat-spi2-core-4b3109052e2ef1e6606765c6086c557726602245.tar.gz
Fix abort on an error while removing a match rule
Diffstat (limited to 'atspi/atspi-event-listener.c')
-rw-r--r--atspi/atspi-event-listener.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/atspi/atspi-event-listener.c b/atspi/atspi-event-listener.c
index 753e0946..781488e0 100644
--- a/atspi/atspi-event-listener.c
+++ b/atspi/atspi-event-listener.c
@@ -701,12 +701,12 @@ atspi_event_listener_deregister_from_callback (AtspiEventListenerCB callback,
l = g_list_remove (l, e);
if (need_replace)
event_listeners = l;
- dbus_error_init (&d_error);
- for (i = 0; i < matchrule_array->len; i++)
- {
- char *matchrule = g_ptr_array_index (matchrule_array, i);
- dbus_bus_remove_match (_atspi_bus(), matchrule, &d_error);
- }
+ for (i = 0; i < matchrule_array->len; i++)
+ {
+ char *matchrule = g_ptr_array_index (matchrule_array, i);
+ dbus_error_init (&d_error);
+ dbus_bus_remove_match (_atspi_bus(), matchrule, &d_error);
+ }
dbus_error_init (&d_error);
message = dbus_message_new_method_call (atspi_bus_registry,
atspi_path_registry,