summaryrefslogtreecommitdiff
path: root/libs/ardour/port.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-03-21 16:58:16 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-03-21 16:58:16 +0000
commit80b654691ae9b4144d14003c8417117a168b69aa (patch)
tree0e470fd5f48da1a40a3cc776e54fe4a027df1c7e /libs/ardour/port.cc
parentfeb120c80340db0baeb1c6cc36e43d38234c4f0d (diff)
avoid untested use of 2 jack weak symbols
git-svn-id: svn://localhost/ardour2/branches/3.0@9175 d708f5d6-7413-0410-9779-e7cbd77b26cf
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;