[libshumate] memory-cache: Stop using g_slice_*
- From: Corentin Noël <corentinnoel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libshumate] memory-cache: Stop using g_slice_*
- Date: Wed, 10 Mar 2021 20:55:41 +0000 (UTC)
commit bb92555a922caa9f51250e3a27764a950943e678
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Mar 10 17:17:57 2021 -0300
memory-cache: Stop using g_slice_*
It is semi-officially deprecated.
shumate/shumate-memory-cache.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/shumate/shumate-memory-cache.c b/shumate/shumate-memory-cache.c
index 6908f98..fe71088 100644
--- a/shumate/shumate-memory-cache.c
+++ b/shumate/shumate-memory-cache.c
@@ -263,7 +263,7 @@ delete_queue_member (QueueMember *member, gpointer user_data)
{
g_free (member->key);
g_free (member->data);
- g_slice_free (QueueMember, member);
+ g_free (member);
}
}
@@ -362,7 +362,7 @@ store_tile (ShumateTileCache *tile_cache,
delete_queue_member (member, NULL);
}
- member = g_slice_new (QueueMember);
+ member = g_new0 (QueueMember, 1);
member->key = key;
member->data = g_memdup (contents, size);
member->size = size;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]