From 46bbe8f34a222cbea12ca27c3135087fd0b7814c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 1 Oct 2007 15:54:48 +0000 Subject: Fix unembedding/reembedding of LV2 GUIs. git-svn-id: http://svn.drobilla.net/lad/ingen@796 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/gui/NodeModule.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/libs/gui/NodeModule.cpp b/src/libs/gui/NodeModule.cpp index 4ac973f9..7a20b4cf 100644 --- a/src/libs/gui/NodeModule.cpp +++ b/src/libs/gui/NodeModule.cpp @@ -182,13 +182,9 @@ NodeModule::embed_gui(bool embed) _gui_item = NULL; } - if (_gui) { - delete _gui; - _gui = NULL; - } - - //slv2_ui_instance_free(_slv2_ui); // FIXME: leak + slv2_ui_instance_free(_slv2_ui); _slv2_ui = NULL; + _gui = NULL; _ports_y_offset = 0; _width = 0; // resize() takes care of it.. -- cgit v1.2.1