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




commit 9bc20aab000f9c4ea0b530f3b5fecef5de597eeb
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Dec 14 16:01:21 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 6d55d612..f6dea5b4 100644
--- a/registryd/deviceeventcontroller.c
+++ b/registryd/deviceeventcontroller.c
@@ -909,8 +909,8 @@ reset_hung_process_from_ping (DBusPendingCall *pending, void *data)
   {
     if (!strcmp (l->data, data))
     {
-      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]