From e256472ca6ea439c121e0e1ef11158a34cad5168 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 8 Jan 2023 17:31:03 +0000 Subject: [PATCH] matroska: drop use of GSlice Part-of: --- .../gst-plugins-good/gst/matroska/matroska-read-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-good/gst/matroska/matroska-read-common.c b/subprojects/gst-plugins-good/gst/matroska/matroska-read-common.c index 6fadbba956..aefaa4dafc 100644 --- a/subprojects/gst-plugins-good/gst/matroska/matroska-read-common.c +++ b/subprojects/gst-plugins-good/gst/matroska/matroska-read-common.c @@ -2756,7 +2756,7 @@ gst_matroska_read_common_parse_metadata (GstMatroskaReadCommon * common, } common->tags_parsed = - g_list_prepend (common->tags_parsed, g_slice_new (guint64)); + g_list_prepend (common->tags_parsed, g_new (guint64, 1)); *((guint64 *) common->tags_parsed->data) = curpos; /* fall-through */ @@ -3278,7 +3278,7 @@ gst_matroska_read_common_read_track_encodings (GstMatroskaReadCommon * common, void gst_matroska_read_common_free_parsed_el (gpointer mem, gpointer user_data) { - g_slice_free (guint64, mem); + g_free (mem); } void