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