diff options
author | David Robillard <d@drobilla.net> | 2011-06-09 00:23:26 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-06-09 00:23:26 +0000 |
commit | 91cdc941af88e8ba6e19673eb17825233db2218c (patch) | |
tree | fb98fc700eb745a6dee1c8bae0e281e07256965a /src/PatchageEvent.cpp | |
parent | 69b9029a052e9d9c0d66e4b2fe954f9a6e906a92 (diff) | |
download | patchage-91cdc941af88e8ba6e19673eb17825233db2218c.tar.gz patchage-91cdc941af88e8ba6e19673eb17825233db2218c.tar.bz2 patchage-91cdc941af88e8ba6e19673eb17825233db2218c.zip |
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
Diffstat (limited to 'src/PatchageEvent.cpp')
-rw-r--r-- | src/PatchageEvent.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
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) { |