Skip to content

Commit 51e697b

Browse files
authored
Merge pull request x64dbg#3225 from HayFieldLaps/tabwidget-delete-on-close
free MHDetachedWindow on reattach
2 parents 56c3249 + 335d94d commit 51e697b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/gui/Src/Gui/TabWidget.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ void MHTabWidget::AttachTab(QWidget* parent)
9595
// Move the tab back to the previous index
9696
if(detachedWidget->mPreviousIndex >= 0)
9797
mTabBar->moveTab(newIndex, detachedWidget->mPreviousIndex);
98+
99+
//Free MHDetachedWindow
100+
delete detachedWidget;
98101
}
99102

100103
// Convert a tab to an external window

0 commit comments

Comments
 (0)