midiparse: drop use of GSlice allocator

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3784>
This commit is contained in:
Tim-Philipp Müller 2023-01-25 00:39:54 +00:00 committed by GStreamer Marge Bot
parent d95d3e39af
commit 3f94d7ec37

View file

@ -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