Skip to content

Commit

Permalink
freeMDI: free() mdi->tmp_info->copyright and mdi->tmp_info
Browse files Browse the repository at this point in the history
closes #204

commit d5d2b27 had removed free()ing of mdi->tmp_info
without saying why, but it seems wrong?
  • Loading branch information
sezero committed Oct 31, 2018
1 parent 4790cde commit 9302455
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/internal_midi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1996,6 +1996,10 @@ void _WM_freeMDI(struct _mdi *mdi) {
free(mdi->events);
_WM_free_reverb(mdi->reverb);
free(mdi->mix_buffer);
if (mdi->tmp_info) {
free(mdi->tmp_info->copyright);
free(mdi->tmp_info);
}
free(mdi);
}

Expand Down

0 comments on commit 9302455

Please sign in to comment.