Update DockAreaWidget.cpp

memory leak
This commit is contained in:
Eric Wong
2023-06-14 09:42:47 +08:00
committed by GitHub
parent 1049576349
commit ccbde05fb7

View File

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