diff options
author | David Robillard <d@drobilla.net> | 2012-04-10 22:54:07 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-10 22:54:07 +0000 |
commit | 694cad25a2565f9ebd04fa649ac867d039ab10b3 (patch) | |
tree | 34e7298297b5ba75037065aee6c74f1a152dd0c9 /lvz | |
parent | e93c9f91918e685e67541f057293eb72b23e9bed (diff) | |
download | mda.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.cpp | 8 |
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 |