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

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/12415
Author: @lhecker
Created: 2/7/2022
Status: Merged
Merged: 2/11/2022
Merged by: @undefined

Base: mainHead: dev/lhecker/atlas-engine-fix-leak-check


📝 Commits (1)

  • d75dd12 AtlasEngine: Fix leak check report for OpenConsole

📊 Changes

4 files changed (+34 additions, -24 deletions)

View changed files

📝 src/interactivity/base/ServiceLocator.cpp (+10 -8)
📝 src/interactivity/inc/ServiceLocator.hpp (+2 -2)
📝 src/interactivity/win32/window.cpp (+7 -13)
📝 src/interactivity/win32/window.hpp (+15 -1)

📄 Description

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

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/12415 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 2/7/2022 **Status:** ✅ Merged **Merged:** 2/11/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/lhecker/atlas-engine-fix-leak-check` --- ### 📝 Commits (1) - [`d75dd12`](https://github.com/microsoft/terminal/commit/d75dd12fdc5b24d4dd5e4d21eebe79a2234b2e93) AtlasEngine: Fix leak check report for OpenConsole ### 📊 Changes **4 files changed** (+34 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `src/interactivity/base/ServiceLocator.cpp` (+10 -8) 📝 `src/interactivity/inc/ServiceLocator.hpp` (+2 -2) 📝 `src/interactivity/win32/window.cpp` (+7 -13) 📝 `src/interactivity/win32/window.hpp` (+15 -1) </details> ### 📄 Description 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 ✅ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:32:19 +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#29024