[at-spi2-core: 6/7] Remove duplicated code
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core: 6/7] Remove duplicated code
- Date: Thu, 2 Jun 2022 21:55:48 +0000 (UTC)
commit 92df0eb6db1a7003f404c08a4471e4603aa18d90
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Jun 1 13:35:09 2022 -0500
Remove duplicated code
destroy_deferred_message_item() already frees a whole BusDataClosure;
no need to spell it out elsewhere.
atspi/atspi-misc.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/atspi/atspi-misc.c b/atspi/atspi-misc.c
index aeb262b2..d7a6b924 100644
--- a/atspi/atspi-misc.c
+++ b/atspi/atspi-misc.c
@@ -802,9 +802,7 @@ process_deferred_messages (void)
while ((closure = g_queue_pop_head (deferred_messages)))
{
process_deferred_message (closure);
- dbus_message_unref (closure->message);
- dbus_connection_unref (closure->bus);
- g_free (closure);
+ destroy_deferred_message_item (closure);
}
in_process_deferred_messages = 0;
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]