From f221a2bdb46ed6a5d0a68989007c0047b60a62e6 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 19 Apr 2019 17:46:25 +0200 Subject: [PATCH] - fixed allocation mismatch in WildMidi. --- src/sound/wildmidi/wildmidi_lib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sound/wildmidi/wildmidi_lib.cpp b/src/sound/wildmidi/wildmidi_lib.cpp index 4fdf12cf3f..66322fb394 100644 --- a/src/sound/wildmidi/wildmidi_lib.cpp +++ b/src/sound/wildmidi/wildmidi_lib.cpp @@ -2105,7 +2105,7 @@ static void freeMDI(struct _mdi *mdi) { free(mdi->tmp_info); _WM_free_reverb(mdi->reverb); free(mdi->mix_buffer); - free(mdi); + delete mdi; } static int *WM_Mix_Linear(midi * handle, int * buffer, unsigned long int count)