summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-10-10 01:04:02 +0000
committerDavid Robillard <d@drobilla.net>2011-10-10 01:04:02 +0000
commit74ee87478f0728487718c30acd201793686f1379 (patch)
treea2e21b2820703257580df94cb33ca9c719914d65
parent31a08808aa7101907c280916f4d09a1feb82e017 (diff)
downloadingen-74ee87478f0728487718c30acd201793686f1379.tar.gz
ingen-74ee87478f0728487718c30acd201793686f1379.tar.bz2
ingen-74ee87478f0728487718c30acd201793686f1379.zip
Fix crash when deleting a node with an embedded GUI.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3542 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/gui/NodeModule.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp
index 20eebdd1..9b0a3743 100644
--- a/src/gui/NodeModule.cpp
+++ b/src/gui/NodeModule.cpp
@@ -70,6 +70,8 @@ NodeModule::NodeModule(PatchCanvas& canvas,
NodeModule::~NodeModule()
{
+ embed_gui(false);
+
NodeControlWindow* win = App::instance().window_factory()->control_window(_node);
delete win; // Will be removed from window factory via signal
}