ref: 6e144e809ddc94181e6309e0492d09d918dbd89a
parent: b64e421ccf21b0d187cc94bc42c605ae32aac1c7
parent: 64b36dc6c7aeca3c5326537c34899bd41ebf6755
author: Fabian Greffrath <[email protected]>
date: Sat Nov 27 03:43:54 EST 2021
Merge pull request #1408 from rfomin/fix_iter win midi: Fix memory leak
--- a/src/i_winmusic.c
+++ b/src/i_winmusic.c
@@ -259,6 +259,7 @@
if (!MIDI_GetNextEvent(tracks[idx].iter, &event))
{
+ MIDI_FreeIterator(tracks[idx].iter);
tracks[idx].iter = NULL;
continue;
}