diff options
-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 |