From 59067d35688732047d8c85c5ca8eff5130f90a29 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 4 May 2015 02:06:59 +0200 Subject: clear port-list before query. fixes crash in PortManager::silence_outputs() --- libs/ardour/port_manager.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs') 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& s) { + s.clear(); + if (!_backend) { return 0; } -- cgit v1.2.3