summaryrefslogtreecommitdiffstats
path: root/src/PatchageEvent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/PatchageEvent.cpp')
-rw-r--r--src/PatchageEvent.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/PatchageEvent.cpp b/src/PatchageEvent.cpp
index b101e73..623b566 100644
--- a/src/PatchageEvent.cpp
+++ b/src/PatchageEvent.cpp
@@ -47,10 +47,7 @@ PatchageEvent::execute(Patchage* patchage)
_str = NULL;
} else if (_type == CLIENT_DESTRUCTION) {
- PatchageModule* module = dynamic_cast<PatchageModule*>(
- patchage->canvas()->find_module(_str, InputOutput));
-
- delete module;
+ patchage->canvas()->remove_module(_str);
free(_str);
_str = NULL;