diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-05-08 18:41:34 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-05-08 18:41:34 +0200 |
commit | d79dcf5dbddc0f9844ab1af965322dbab79b2c99 (patch) | |
tree | 34d5b5ca9b11d0d63715971afe4a8e12909255a3 /plugins/supereq | |
parent | 01753125e1878c255cfda64807066abca3348e27 (diff) |
fixed memleak in supereq
Diffstat (limited to 'plugins/supereq')
-rw-r--r-- | plugins/supereq/Equ.cpp | 1 | ||||
-rw-r--r-- | plugins/supereq/supereq.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/plugins/supereq/Equ.cpp b/plugins/supereq/Equ.cpp index 42fdcc13..f53b99d1 100644 --- a/plugins/supereq/Equ.cpp +++ b/plugins/supereq/Equ.cpp @@ -289,6 +289,7 @@ extern "C" void equ_quit(void) free(fsamples);
free(inbuf);
free(outbuf);
+ free(ditherbuf);
lires1 = NULL;
lires2 = NULL;
diff --git a/plugins/supereq/supereq.c b/plugins/supereq/supereq.c index 972c1798..b72c6c09 100644 --- a/plugins/supereq/supereq.c +++ b/plugins/supereq/supereq.c @@ -111,6 +111,9 @@ supereq_plugin_stop (void) { deadbeef->ev_unsubscribe (DB_PLUGIN (&plugin), DB_EV_CONFIGCHANGED, DB_CALLBACK (supereq_on_configchanged), 0); if (tid) { deadbeef->thread_join (tid); + tid = 0; + } + if (mutex) { deadbeef->mutex_free (mutex); mutex = 0; } |