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:
parent
2ad412d6ae
commit
2b14e4b6a0
@ -140,6 +140,7 @@ public:
|
|||||||
{
|
{
|
||||||
LayoutItem->widget()->setParent(nullptr);
|
LayoutItem->widget()->setParent(nullptr);
|
||||||
}
|
}
|
||||||
|
delete LayoutItem;
|
||||||
m_CurrentWidget = nullptr;
|
m_CurrentWidget = nullptr;
|
||||||
m_CurrentIndex = -1;
|
m_CurrentIndex = -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user