[gnome-panel] menu: stop using GSlice
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] menu: stop using GSlice
- Date: Sun, 14 Mar 2021 14:45:25 +0000 (UTC)
commit cb453cb20b2f29a6ed9ca3dd201337543cad50f7
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Mar 14 16:01:44 2021 +0200
menu: stop using GSlice
modules/menu/gp-bookmarks.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/modules/menu/gp-bookmarks.c b/modules/menu/gp-bookmarks.c
index a6fe0f8e7..c81664982 100644
--- a/modules/menu/gp-bookmarks.c
+++ b/modules/menu/gp-bookmarks.c
@@ -58,7 +58,7 @@ gp_bookmark_free (gpointer data)
g_clear_pointer (&bookmark->label, g_free);
g_clear_pointer (&bookmark->tooltip, g_free);
- g_slice_free (GpBookmark, bookmark);
+ g_free (bookmark);
}
static GpBookmark *
@@ -91,7 +91,7 @@ gp_bookmark_new (const gchar *uri,
return NULL;
}
- bookmark = g_slice_new0 (GpBookmark);
+ bookmark = g_new0 (GpBookmark, 1);
bookmark->file = file;
bookmark->icon = gp_menu_utils_get_icon_for_file (file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]