From 91cdc941af88e8ba6e19673eb17825233db2218c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 9 Jun 2011 00:23:26 +0000 Subject: Fix support for multiple instances of alsa clients with the same name (never consider client name an ID). Remove Alsa specific crap from PatchagePort. Sane implementation of AlsaDriver::refresh. Fix refreshing. Remove useless Jack graph order callback. Fix double add/remove of ports to modules. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3374 a436a847-0d15-0410-975c-d299462d15a1 --- src/PatchageEvent.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/PatchageEvent.cpp') diff --git a/src/PatchageEvent.cpp b/src/PatchageEvent.cpp index d1afb1a..32136e3 100644 --- a/src/PatchageEvent.cpp +++ b/src/PatchageEvent.cpp @@ -82,12 +82,7 @@ PatchageEvent::execute(Patchage* patchage) } else if (_type == PORT_DESTRUCTION) { - PatchagePort* port = patchage->canvas()->remove_port(_port_1); - if (port) { - delete port; - } else { - Raul::error << "Unable to find port `" << _port_1 << "' to destroy" << endl; - } + patchage->canvas()->remove_port(_port_1); } else if (_type == CONNECTION) { -- cgit v1.2.1