From 3f94d7ec37ffc8d9a9a0aef30c119992e8193c57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 25 Jan 2023 00:39:54 +0000 Subject: [PATCH] midiparse: drop use of GSlice allocator Part-of: --- subprojects/gst-plugins-bad/gst/midi/midiparse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/gst/midi/midiparse.c b/subprojects/gst-plugins-bad/gst/midi/midiparse.c index 11893103f0..c567589ee6 100644 --- a/subprojects/gst-plugins-bad/gst/midi/midiparse.c +++ b/subprojects/gst-plugins-bad/gst/midi/midiparse.c @@ -829,7 +829,7 @@ parse_MTrk (GstMidiParse * midiparse, guint8 * data, guint size) if (midiparse->track_count >= midiparse->ntracks) return TRUE; - track = g_slice_new (GstMidiTrack); + track = g_new (GstMidiTrack, 1); track->data = data; track->size = size; reset_track (track, midiparse); @@ -1293,7 +1293,7 @@ pause: static void free_track (GstMidiTrack * track, GstMidiParse * midiparse) { - g_slice_free (GstMidiTrack, track); + g_free (track); } static void