From 76f6fcfad68d88728bb1a04b193029aa9e46e976 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 20 Dec 2008 20:28:04 +0000 Subject: Fix deregistration of Jack ports, associated memory leaks. Hopefully a fix for #294 and #305). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1877 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/PatchCanvas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/PatchCanvas.cpp') diff --git a/src/gui/PatchCanvas.cpp b/src/gui/PatchCanvas.cpp index 8a580b88..0360d989 100644 --- a/src/gui/PatchCanvas.cpp +++ b/src/gui/PatchCanvas.cpp @@ -395,11 +395,11 @@ PatchCanvas::remove_port(SharedPtr pm) // Port on this patch if (i != _views.end()) { - _views.erase(i); bool ret = remove_item(i->second); if (!ret) cerr << "WARNING: Failed to remove port item: " << pm->path() << endl; i->second.reset(); + _views.erase(i); } else { SharedPtr module = PtrCast(_views[pm->parent()]); -- cgit v1.2.1