Commit bb92555a authored by Georges Basile Stavracas Neto's avatar Georges Basile Stavracas Neto
Browse files

memory-cache: Stop using g_slice_*

It is semi-officially deprecated.
parent ba97e474
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment