diff --git a/pyqode/core/widgets/splittable_tab_widget.py b/pyqode/core/widgets/splittable_tab_widget.py
index <HASH>..<HASH> 100644
--- a/pyqode/core/widgets/splittable_tab_widget.py
+++ b/pyqode/core/widgets/splittable_tab_widget.py
@@ -468,8 +468,6 @@ class BaseTabWidget(QtWidgets.QTabWidget):
             SplittableTabWidget.tab_under_menu = None
         if not clones:
             widget.setParent(None)
-            widget.deleteLater()
-            del widget
         else:
             try:
                 clones[0].syntax_highlighter.setDocument(document)
Fix segmentation fault in HackEdit on Windows