summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-12-20 23:28:25 +0000
committerDavid Robillard <d@drobilla.net>2012-12-20 23:28:25 +0000
commitaac9cbc534ab57a5471b121523bd8308e857c228 (patch)
treeae06b69707a0a24cf0f449d345394fa2173f463e /src/server
parentf06f5af38d3b188fcc5e2da2bb9f84b5013f92a2 (diff)
downloadingen-aac9cbc534ab57a5471b121523bd8308e857c228.tar.gz
ingen-aac9cbc534ab57a5471b121523bd8308e857c228.tar.bz2
ingen-aac9cbc534ab57a5471b121523bd8308e857c228.zip
Fix crash on bad delete events.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4867 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server')
-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);