Skip to content

Commit

Permalink
- properly clean up imgui console on shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
kaffeewolf committed Mar 3, 2024
1 parent 2de7a68 commit 26c2122
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions toolkit/editor/editor/ui/windows/console.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ Console::Console()
*/
Console::~Console()
{
if (this->consoleHandler.isvalid())
{
this->consoleHandler->Discard();
this->consoleHandler = nullptr;
this->console = nullptr;
}
}

//------------------------------------------------------------------------------
Expand Down

0 comments on commit 26c2122

Please sign in to comment.