From 947aa6f4d70ae8b440b2a2c87cc6a735e1b8c44b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 11 Jan 2012 03:58:45 +0000 Subject: Delete modules when Jack clients disappear. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3934 a436a847-0d15-0410-975c-d299462d15a1 --- src/PatchageCanvas.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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; } } -- cgit v1.2.1