Commit 8114494
committed
Fix double-deletion risk in tray icon context menu
Replaces creation of owning shared_ptr for Menu with a non-owning aliasing shared_ptr using an empty deleter. This prevents double-deletion since Menu objects are managed elsewhere and should not have a separate control block.1 parent 74b130d commit 8114494
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
146 | 152 | | |
147 | 153 | | |
148 | 154 | | |
| |||
0 commit comments