aboutsummaryrefslogtreecommitdiffstats
path: root/lvz
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-10 22:54:07 +0000
committerDavid Robillard <d@drobilla.net>2012-04-10 22:54:07 +0000
commit694cad25a2565f9ebd04fa649ac867d039ab10b3 (patch)
tree34e7298297b5ba75037065aee6c74f1a152dd0c9 /lvz
parente93c9f91918e685e67541f057293eb72b23e9bed (diff)
downloadmda.lv2-694cad25a2565f9ebd04fa649ac867d039ab10b3.tar.gz
mda.lv2-694cad25a2565f9ebd04fa649ac867d039ab10b3.tar.bz2
mda.lv2-694cad25a2565f9ebd04fa649ac867d039ab10b3.zip
Fix memory leaks.
git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/mda.lv2@4157 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'lvz')
-rw-r--r--lvz/wrapper.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/lvz/wrapper.cpp b/lvz/wrapper.cpp
index 5125d55..b8b9624 100644
--- a/lvz/wrapper.cpp
+++ b/lvz/wrapper.cpp
@@ -49,7 +49,13 @@ typedef struct {
static void
lvz_cleanup(LV2_Handle instance)
{
- free(instance);
+ LVZPlugin* plugin = (LVZPlugin*)instance;
+ free(plugin->controls);
+ free(plugin->control_buffers);
+ free(plugin->inputs);
+ free(plugin->outputs);
+ delete plugin->effect;
+ free(plugin);
}
static void