Skip to content

Commit ccbde05

Browse files
author
Eric Wong
authored
Update DockAreaWidget.cpp
memory leak
1 parent 1049576 commit ccbde05

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/DockAreaWidget.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ class CDockAreaLayout
140140
{
141141
LayoutItem->widget()->setParent(nullptr);
142142
}
143+
delete LayoutItem;
143144
m_CurrentWidget = nullptr;
144145
m_CurrentIndex = -1;
145146
}

0 commit comments

Comments
 (0)