From 694cad25a2565f9ebd04fa649ac867d039ab10b3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 10 Apr 2012 22:54:07 +0000 Subject: Fix memory leaks. git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/mda.lv2@4157 a436a847-0d15-0410-975c-d299462d15a1 --- lvz/wrapper.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lvz') 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 -- cgit v1.2.1