SDL_mixer: Fix memory leak in ReadMIDIFile

From c9f0946a783293d12178ce86773dd6f8f1a08b1c Mon Sep 17 00:00:00 2001
From: zhailiangliang <[EMAIL REDACTED]>
Date: Thu, 22 Sep 2022 14:21:09 +0800
Subject: [PATCH] Fix memory leak in ReadMIDIFile

---
 src/codecs/native_midi/native_midi_common.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/codecs/native_midi/native_midi_common.c b/src/codecs/native_midi/native_midi_common.c
index cfc014ba..4e247269 100644
--- a/src/codecs/native_midi/native_midi_common.c
+++ b/src/codecs/native_midi/native_midi_common.c
@@ -350,6 +350,7 @@ static int ReadMIDIFile(MIDIFile *mididata, SDL_RWops *src)
             SDL_free(mididata->track[i].data);
     }
 
+    SDL_free(mididata->track);
     return 0;
 }