[gnome-panel] lockdown: stop using GSlice
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] lockdown: stop using GSlice
- Date: Sun, 14 Mar 2021 14:45:25 +0000 (UTC)
commit 1160fdaf6f0492d6eba72df9eb10f551f0dc4385
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Mar 14 16:05:38 2021 +0200
lockdown: stop using GSlice
gnome-panel/panel-lockdown.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-panel/panel-lockdown.c b/gnome-panel/panel-lockdown.c
index ffdfaa704..5b6b51578 100644
--- a/gnome-panel/panel-lockdown.c
+++ b/gnome-panel/panel-lockdown.c
@@ -390,7 +390,7 @@ _panel_lockdown_notify_data_destroy (gpointer data)
g_signal_handler_disconnect (notify_data->lockdown,
notify_data->handler_id);
- g_slice_free (PanelLockdownNotifyData, notify_data);
+ g_free (notify_data);
}
static void
@@ -424,7 +424,7 @@ panel_lockdown_on_notify (PanelLockdown *lockdown,
g_return_if_fail (G_IS_OBJECT (object_while_alive));
g_return_if_fail (callback != NULL);
- notify_data = g_slice_new0 (PanelLockdownNotifyData);
+ notify_data = g_new0 (PanelLockdownNotifyData, 1);
notify_data->lockdown = lockdown;
notify_data->callback = callback;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]