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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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