Skip to content

Commit

Permalink
#5586: Better call Destroy instead of deleting the window manually
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Apr 11, 2021
1 parent 960c259 commit 1b8deff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radiant/ui/mainframe/AuiLayout.cpp
Expand Up @@ -164,7 +164,7 @@ void AuiLayout::deactivate()
_auiMgr.UnInit();

// Dispose of the managed window
delete _auiMgr.GetManagedWindow();
_auiMgr.GetManagedWindow()->Destroy();
}

void AuiLayout::restoreStateFromRegistry()
Expand Down

0 comments on commit 1b8deff

Please sign in to comment.