diff options
author | David Robillard <d@drobilla.net> | 2007-10-01 15:54:48 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-10-01 15:54:48 +0000 |
commit | 46bbe8f34a222cbea12ca27c3135087fd0b7814c (patch) | |
tree | 2ac7e32599dd375c91093fc0ae3ebe81c57d6cb3 /src | |
parent | e50379299db648dcea9977081803db8e5841c1b7 (diff) | |
download | ingen-46bbe8f34a222cbea12ca27c3135087fd0b7814c.tar.gz ingen-46bbe8f34a222cbea12ca27c3135087fd0b7814c.tar.bz2 ingen-46bbe8f34a222cbea12ca27c3135087fd0b7814c.zip |
Fix unembedding/reembedding of LV2 GUIs.
git-svn-id: http://svn.drobilla.net/lad/ingen@796 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/libs/gui/NodeModule.cpp | 8 |
1 files 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.. |