mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-24 23:31:32 +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