diff options
author | waker <wakeroid@gmail.com> | 2011-05-14 16:23:20 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-05-14 16:23:20 +0200 |
commit | b70237d07ddf2162e5b9deb51738981af109e90d (patch) | |
tree | 87b64df0b33737fc987383dd2d2501f12e178050 | |
parent | 3e7ac71a61fdf5fb3b5febcec679a642afc82a6c (diff) |
fixed memleak in wildmidi
-rw-r--r-- | plugins/wildmidi/src/wildmidi_lib.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/wildmidi/src/wildmidi_lib.c b/plugins/wildmidi/src/wildmidi_lib.c index 1096ebe6..97912c50 100644 --- a/plugins/wildmidi/src/wildmidi_lib.c +++ b/plugins/wildmidi/src/wildmidi_lib.c @@ -383,6 +383,16 @@ void init_gauss (void) { } } +void +free_gauss (void) { + for (int i = 0; i < (1<<10); i++) { + if (gauss_table[i]) { + free (gauss_table[i]); + } + gauss_table[i] = NULL; + } +} + unsigned long int delay_size[4][2]; signed long int a[5][2]; signed long int b[5][2]; @@ -5074,6 +5084,7 @@ WildMidi_Shutdown ( void ) { } } WM_FreePatches(); + free_gauss (); WM_Initialized = 0; return 0; } |