From 74ee87478f0728487718c30acd201793686f1379 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 10 Oct 2011 01:04:02 +0000 Subject: 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 --- src/gui/NodeModule.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 } -- cgit v1.2.1