[gnome-applets] tracker-search-bar: stop using GSlice
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets] tracker-search-bar: stop using GSlice
- Date: Sun, 14 Mar 2021 14:53:30 +0000 (UTC)
commit ddbd93c47f38b76fe2652933d94366fd1715f6f1
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Mar 14 16:50:17 2021 +0200
tracker-search-bar: stop using GSlice
gnome-applets/tracker-search-bar/tracker-results-window.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnome-applets/tracker-search-bar/tracker-results-window.c
b/gnome-applets/tracker-search-bar/tracker-results-window.c
index 8bb249ca5..065d29347 100644
--- a/gnome-applets/tracker-search-bar/tracker-results-window.c
+++ b/gnome-applets/tracker-search-bar/tracker-results-window.c
@@ -626,7 +626,7 @@ item_data_new (const gchar *urn,
{
ItemData *id;
- id = g_slice_new0 (ItemData);
+ id = g_new0 (ItemData, 1);
id->urn = g_strdup (urn);
id->title = g_strdup (title);
@@ -647,7 +647,7 @@ item_data_free (ItemData *id)
g_free (id->link);
g_free (id->icon_name);
- g_slice_free (ItemData, id);
+ g_free (id);
}
static SearchQuery *
@@ -657,7 +657,7 @@ search_query_new (gint request_id,
{
SearchQuery *sq;
- sq = g_slice_new0 (SearchQuery);
+ sq = g_new0 (SearchQuery, 1);
sq->request_id = request_id;
sq->cancellable = g_cancellable_new ();
@@ -677,7 +677,7 @@ search_query_free (SearchQuery *sq)
}
g_slist_free_full (sq->results, (GDestroyNotify) item_data_free);
- g_slice_free (SearchQuery, sq);
+ g_free (sq);
}
static gchar *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]