Commit 9eda24f
committed
macosx: Clean up single-shot timers correctly
The `NSTimer` docs state that a non-repeating (aka single-shot in our
terms) timer is invalidated after it fires. This means that we should
not do it ourselves, and in fact it appears that the pointer itself is
no longer valid, so we would be passing an `invalidate` message to a
random object or segfault.1 parent 35c1dd2 commit 9eda24f
2 files changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | 70 | | |
74 | 71 | | |
75 | 72 | | |
76 | | - | |
77 | 73 | | |
78 | 74 | | |
79 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1741 | 1741 | | |
1742 | 1742 | | |
1743 | 1743 | | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
1744 | 1749 | | |
1745 | 1750 | | |
1746 | 1751 | | |
| |||
0 commit comments