[at-spi2-core: 29/32] at-spi-bus-launcher: allocate _global_app with g_new0, not g_slice_new0




commit 1c195fcf02f840dbab9a08e03b3392d3bf76560b
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Dec 14 16:08:52 2021 -0600

    at-spi-bus-launcher: allocate _global_app with g_new0, not g_slice_new0
    
    The latter is more or less deprecated now that the system malloc is
    actually good.

 bus/at-spi-bus-launcher.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/bus/at-spi-bus-launcher.c b/bus/at-spi-bus-launcher.c
index 4d731492..b695fb68 100644
--- a/bus/at-spi-bus-launcher.c
+++ b/bus/at-spi-bus-launcher.c
@@ -928,7 +928,7 @@ main (int    argc,
   gboolean screen_reader_set = FALSE;
   gint i;
 
-  _global_app = g_slice_new0 (A11yBusLauncher);
+  _global_app = g_new0 (A11yBusLauncher, 1);
   _global_app->loop = g_main_loop_new (NULL, FALSE);
 
   for (i = 1; i < argc; i++)


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