1
0
mirror of https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git synced 2025-04-01 02:42:39 +08:00

Update DockAreaWidget.cpp

memory leak
This commit is contained in:
Eric Wong 2023-06-14 09:42:47 +08:00 committed by Jon Jenssen
parent 2ad412d6ae
commit 2b14e4b6a0

View File

@ -140,6 +140,7 @@ public:
{
LayoutItem->widget()->setParent(nullptr);
}
delete LayoutItem;
m_CurrentWidget = nullptr;
m_CurrentIndex = -1;
}