[at-spi2-core: 25/32] Reorder g_free around g_slist_remove




commit 330a803f609112917f9f01c7eb1e4ea37cf147eb
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Dec 14 16:00:53 2021 -0600

    Reorder g_free around g_slist_remove

 registryd/deviceeventcontroller.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/registryd/deviceeventcontroller.c b/registryd/deviceeventcontroller.c
index daf18b29..6d55d612 100644
--- a/registryd/deviceeventcontroller.c
+++ b/registryd/deviceeventcontroller.c
@@ -884,8 +884,8 @@ reset_hung_process (DBusPendingCall *pending, void *data)
   {
     if (!strcmp (l->data, dest))
     {
-      g_free (l->data);
       hung_processes = g_slist_remove (hung_processes, l->data);
+      g_free (l->data);
       break;
     }
   }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]