diff options
author | David Robillard <d@drobilla.net> | 2011-06-19 16:53:41 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-06-19 16:53:41 +0000 |
commit | 01b04e0d5868ecebf16b9b2051227a8b2fd6e2e1 (patch) | |
tree | cae46fb00bbecd8daf5c1ef3ddbd6dcbcfa96169 /src/PatchageEvent.cpp | |
parent | 7da76f409f4f75e9f68634b6f95dba643375b756 (diff) | |
download | patchage-01b04e0d5868ecebf16b9b2051227a8b2fd6e2e1.tar.gz patchage-01b04e0d5868ecebf16b9b2051227a8b2fd6e2e1.tar.bz2 patchage-01b04e0d5868ecebf16b9b2051227a8b2fd6e2e1.zip |
Remove module from canvas when Jack clients exit.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3404 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/PatchageEvent.cpp')
-rw-r--r-- | src/PatchageEvent.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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<PatchageModule*>( patchage->canvas()->find_module(_str, InputOutput)); - if (module) { - patchage->canvas()->remove_item(module); - } - + delete module; free(_str); _str = NULL; |