diff options
author | David Robillard <d@drobilla.net> | 2012-01-11 03:58:45 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-01-11 03:58:45 +0000 |
commit | 947aa6f4d70ae8b440b2a2c87cc6a735e1b8c44b (patch) | |
tree | b651a6cbacad669f1bae487b8a9d9fee30aebd9e /src | |
parent | d7b5956f76f337eb7e2e2434cc20f707e905e861 (diff) | |
download | patchage-947aa6f4d70ae8b440b2a2c87cc6a735e1b8c44b.tar.gz patchage-947aa6f4d70ae8b440b2a2c87cc6a735e1b8c44b.tar.bz2 patchage-947aa6f4d70ae8b440b2a2c87cc6a735e1b8c44b.zip |
Delete modules when Jack clients disappear.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3934 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/PatchageCanvas.cpp | 2 |
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; } } |