[at-spi2-core: 24/32] Reorder g_free around g_list_remove




commit 3ca7fef1aea008044674b1430328cd184a2c21c9
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Dec 14 16:00:01 2021 -0600

    Reorder g_free around g_list_remove

 registryd/registry.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/registryd/registry.c b/registryd/registry.c
index bfa3a317..e22fbcbc 100644
--- a/registryd/registry.c
+++ b/registryd/registry.c
@@ -248,8 +248,8 @@ remove_events (SpiRegistry *registry, const char *bus_name, const char *event)
           g_strfreev (evdata->data);
           g_free (evdata->bus_name);
           g_slist_free_full (evdata->properties, g_free);
-          g_free (evdata);
           registry->events = g_list_remove (registry->events, evdata);
+          g_free (evdata);
         }
       else
         {


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