summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/PatchageCanvas.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/PatchageCanvas.cpp b/src/PatchageCanvas.cpp
index 5d24227..e531f57 100644
--- a/src/PatchageCanvas.cpp
+++ b/src/PatchageCanvas.cpp
@@ -72,8 +72,10 @@ PatchageCanvas::remove_module(const string& name)
{
ModuleIndex::iterator i = _module_index.find(name);
while (i != _module_index.end()) {
+ PatchageModule* mod = i->second;
_module_index.erase(i);
i = _module_index.find(name);
+ delete mod;
}
}