[gnome-panel] applet-frame: stop using GSlice
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] applet-frame: stop using GSlice
- Date: Sun, 14 Mar 2021 14:45:25 +0000 (UTC)
commit 717b2d73c03741d206aeac3e4e690c46c496b379
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Mar 14 16:06:17 2021 +0200
applet-frame: stop using GSlice
gnome-panel/panel-applet-frame.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-panel/panel-applet-frame.c b/gnome-panel/panel-applet-frame.c
index 60698e990..873bea3ba 100644
--- a/gnome-panel/panel-applet-frame.c
+++ b/gnome-panel/panel-applet-frame.c
@@ -819,7 +819,7 @@ panel_applet_frame_activating_free (PanelAppletFrameActivating *frame_act)
{
g_object_unref (frame_act->settings);
g_free (frame_act->id);
- g_slice_free (PanelAppletFrameActivating, frame_act);
+ g_free (frame_act);
}
PanelOrientation
@@ -971,7 +971,7 @@ panel_applet_frame_load_helper (const gchar *iid,
return;
}
- frame_act = g_slice_new0 (PanelAppletFrameActivating);
+ frame_act = g_new0 (PanelAppletFrameActivating, 1);
frame_act->panel = panel;
frame_act->id = g_strdup (id);
frame_act->settings = g_object_ref (settings);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]