summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-12-12 22:52:33 +0000
committerDavid Robillard <d@drobilla.net>2011-12-12 22:52:33 +0000
commit6f0bb9fe84fba3b671970d56d42495ee53cc614e (patch)
tree5211d58fa1e5707484f9a78b30bba37cc6aeb1b0
parent6a67d2a972b39b8a0311b74b3162785f1e1a7053 (diff)
downloadganv-6f0bb9fe84fba3b671970d56d42495ee53cc614e.tar.gz
ganv-6f0bb9fe84fba3b671970d56d42495ee53cc614e.tar.bz2
ganv-6f0bb9fe84fba3b671970d56d42495ee53cc614e.zip
Fix crash when joining non-ports.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@3863 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/Canvas.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Canvas.cpp b/src/Canvas.cpp
index 9bba605..db02ffe 100644
--- a/src/Canvas.cpp
+++ b/src/Canvas.cpp
@@ -1196,7 +1196,7 @@ switch (event->type) {
void
GanvCanvasImpl::ports_joined(GanvPort* port1, GanvPort* port2)
{
- if (port1 == port2 || !port1 || !port2) {
+ if (port1 == port2 || !port1 || !port2 || !port1->impl || !port2->impl) {
return;
}