summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/events/Delete.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/events/Delete.cpp b/src/server/events/Delete.cpp
index e4878f4e..2504e837 100644
--- a/src/server/events/Delete.cpp
+++ b/src/server/events/Delete.cpp
@@ -122,8 +122,9 @@ Delete::execute(ProcessContext& context)
_disconnect_event->execute(context);
}
- GraphImpl* parent = _block ? _block->parent_graph() : _port->parent_graph();
+ GraphImpl* parent = _block ? _block->parent_graph() : NULL;
if (_port) {
+ parent = _port->parent_graph();
_engine.maid()->dispose(parent->external_ports());
parent->external_ports(_ports_array);