mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-15 13:15:43 +08:00
Memory leak (#242)
* Delete widgets without parents in CDockAreaLayout. * Fixed the place where dock widgets witout parents are destroyed.
This commit is contained in:
parent
a4d281dbb6
commit
0eca1b0433
@ -484,6 +484,12 @@ CDockManager::~CDockManager()
|
||||
{
|
||||
delete FloatingWidget;
|
||||
}
|
||||
auto DockWidgetsMap = d->DockWidgetsMap;
|
||||
for(auto DockWidget : d->DockWidgetsMap)
|
||||
{
|
||||
if(!DockWidget->parent())
|
||||
delete DockWidget;
|
||||
}
|
||||
delete d;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user