From 01b04e0d5868ecebf16b9b2051227a8b2fd6e2e1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 19 Jun 2011 16:53:41 +0000 Subject: Remove module from canvas when Jack clients exit. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3404 a436a847-0d15-0410-975c-d299462d15a1 --- src/PatchageEvent.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/PatchageEvent.cpp') diff --git a/src/PatchageEvent.cpp b/src/PatchageEvent.cpp index cf53c03..b101e73 100644 --- a/src/PatchageEvent.cpp +++ b/src/PatchageEvent.cpp @@ -50,10 +50,7 @@ PatchageEvent::execute(Patchage* patchage) PatchageModule* module = dynamic_cast( patchage->canvas()->find_module(_str, InputOutput)); - if (module) { - patchage->canvas()->remove_item(module); - } - + delete module; free(_str); _str = NULL; -- cgit v1.2.1