summaryrefslogtreecommitdiffstats
path: root/src/server/ArcImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/ArcImpl.cpp')
-rw-r--r--src/server/ArcImpl.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/server/ArcImpl.cpp b/src/server/ArcImpl.cpp
index 1dd92d48..406d2010 100644
--- a/src/server/ArcImpl.cpp
+++ b/src/server/ArcImpl.cpp
@@ -42,6 +42,16 @@ ArcImpl::ArcImpl(PortImpl* tail, PortImpl* head)
assert(tail->path() != head->path());
}
+ArcImpl::~ArcImpl()
+{
+ if (is_linked()) {
+ InputPort* iport = dynamic_cast<InputPort*>(_head);
+ if (iport) {
+ iport->remove_arc(*this);
+ }
+ }
+}
+
const Raul::Path&
ArcImpl::tail_path() const
{