mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 19:21:06 +00:00
midiparse: drop use of GSlice allocator
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3784>
This commit is contained in:
parent
d95d3e39af
commit
3f94d7ec37
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue