diff options
author | Robin Gareus <robin@gareus.org> | 2015-05-04 02:06:59 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-05-04 02:06:59 +0200 |
commit | 59067d35688732047d8c85c5ca8eff5130f90a29 (patch) | |
tree | 823fdd172d13e4e0cd3d074c9dd316cdd9df4954 /libs/ardour/port_manager.cc | |
parent | 9ec3085d71269ab5c155db4284738da6ec7f38ae (diff) |
clear port-list before query.
fixes crash in PortManager::silence_outputs()
Diffstat (limited to 'libs/ardour/port_manager.cc')
-rw-r--r-- | libs/ardour/port_manager.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/port_manager.cc b/libs/ardour/port_manager.cc index 1557a6106c..f2f2334c27 100644 --- a/libs/ardour/port_manager.cc +++ b/libs/ardour/port_manager.cc @@ -261,6 +261,8 @@ PortManager::get_ports (DataType type, PortList& pl) int PortManager::get_ports (const string& port_name_pattern, DataType type, PortFlags flags, vector<string>& s) { + s.clear(); + if (!_backend) { return 0; } |