mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-02 03:47:42 +01:00
Fixed issue with crash when invalid get_connections request is made on invalid port handle. (Grygorii)
This commit is contained in:
parent
1df394e027
commit
f714d026ee
1 changed files with 6 additions and 1 deletions
|
|
@ -165,7 +165,12 @@ Port::get_connections (std::vector<std::string> & c) const
|
|||
return c.size();
|
||||
}
|
||||
|
||||
return port_engine.get_connections (_port_handle, c);
|
||||
if (_port_handle) {
|
||||
return port_engine.get_connections (_port_handle, c);
|
||||
return c.size();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue