diff --git a/src/DockAreaWidget.cpp b/src/DockAreaWidget.cpp index d44115e..c1d8d55 100644 --- a/src/DockAreaWidget.cpp +++ b/src/DockAreaWidget.cpp @@ -140,6 +140,7 @@ public: { LayoutItem->widget()->setParent(nullptr); } + delete LayoutItem; m_CurrentWidget = nullptr; m_CurrentIndex = -1; }