Commit 55d8ed6
committed
fix(memory): remove heap allocation in OnDestroy and store window position safely
Replaced the leaked `new tagRECT` allocation with a stack-allocated RECT in
OnDestroy. The dialog's final on-screen position is now captured using a local
RECT and saved without introducing a memory leak.
This fixes a small resource leak and improves shutdown correctness without
changing behavior.1 parent e07a405 commit 55d8ed6
1 file changed
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2077 | 2077 | | |
2078 | 2078 | | |
2079 | 2079 | | |
2080 | | - | |
2081 | | - | |
2082 | | - | |
2083 | | - | |
2084 | | - | |
2085 | | - | |
2086 | | - | |
2087 | | - | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
| 2085 | + | |
2088 | 2086 | | |
2089 | 2087 | | |
2090 | 2088 | | |
| |||
0 commit comments