summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libs/gui/NodeModule.cpp8
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..