[gnome-panel] clock: stop using GSlice



commit 77b21e1d1bece67e1411248d7c51344300a91b64
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sun Mar 14 16:03:42 2021 +0200

    clock: stop using GSlice

 modules/clock/calendar-sources.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/modules/clock/calendar-sources.c b/modules/clock/calendar-sources.c
index bb7438533..ad729ce40 100644
--- a/modules/clock/calendar-sources.c
+++ b/modules/clock/calendar-sources.c
@@ -100,7 +100,7 @@ client_data_free (ClientData *data)
 {
   g_signal_handler_disconnect (data->client, data->backend_died_id);
   g_object_unref (data->client);
-  g_slice_free (ClientData, data);
+  g_free (data);
 }
 
 G_DEFINE_TYPE_WITH_PRIVATE (CalendarSources, calendar_sources, G_TYPE_OBJECT)
@@ -268,7 +268,7 @@ create_client_for_source (ESource              *source,
       return;
     }
 
-  data = g_slice_new0 (ClientData);
+  data = g_new0 (ClientData, 1);
   data->client = E_CAL_CLIENT (client); /* takes ownership */
   data->backend_died_id = g_signal_connect (client,
                                             "backend-died",


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