Commit 3c4a88f
committed
Use heap allocation for WindowMessageDispatcher singleton
Changed WindowMessageDispatcher::GetInstance to allocate the singleton instance on the heap. This avoids issues with static destruction order and ensures the instance remains valid throughout the program lifetime, including during static destruction.1 parent a8a2ecb commit 3c4a88f
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
0 commit comments