[PR #12415] AtlasEngine: Fix leak check report for OpenConsole #29029

Open
opened 2026-01-31 09:32:20 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/12415

State: closed
Merged: Yes


AtlasEngine enables various debug options for D2D and D3D in Debug builds.
Among those are resource leak checks, which were broken in OpenConsole
due to the unclean exit in ServiceLocator::RundownAndExit.
This commit fixes the issue by running the destructors
of any renderers registered in the Window class first.

PR Checklist

Validation Steps Performed

  • Set HKEY_CURRENT_USER\Console\UseDx to 2
  • Run OpenConsole.exe
  • Exit
  • No exceptions are thrown
**Original Pull Request:** https://github.com/microsoft/terminal/pull/12415 **State:** closed **Merged:** Yes --- AtlasEngine enables various debug options for D2D and D3D in Debug builds. Among those are resource leak checks, which were broken in OpenConsole due to the unclean exit in `ServiceLocator::RundownAndExit`. This commit fixes the issue by running the destructors of any renderers registered in the Window class first. ## PR Checklist * [x] Closes #12414 * [x] I work here ## Validation Steps Performed * Set `HKEY_CURRENT_USER\Console\UseDx` to `2` * Run `OpenConsole.exe` * Exit * No exceptions are thrown ✅
claunia added the pull-request label 2026-01-31 09:32:20 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#29029