summaryrefslogtreecommitdiff
path: root/libs/ardour/port.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/port.cc')
-rw-r--r--libs/ardour/port.cc19
1 files changed, 15 insertions, 4 deletions
diff --git a/libs/ardour/port.cc b/libs/ardour/port.cc
index bc802aa81e..647f470325 100644
--- a/libs/ardour/port.cc
+++ b/libs/ardour/port.cc
@@ -129,7 +129,11 @@ Port::get_connections (std::vector<std::string> & c) const
++n;
}
- jack_free (jc);
+ if (jack_free) {
+ jack_free (jc);
+ } else {
+ free (jc);
+ }
}
}
@@ -471,12 +475,19 @@ Port::physically_connected () const
jack_port_t* port = jack_port_by_name (_engine->jack(), jc[i]);
if (port && (jack_port_flags (port) & JackPortIsPhysical)) {
- jack_free (jc);
+ if (jack_free) {
+ jack_free (jc);
+ } else {
+ free (jc);
+ }
return true;
}
}
-
- jack_free (jc);
+ if (jack_free) {
+ jack_free (jc);
+ } else {
+ free (jc);
+ }
}
return false;