macosx: Clean up single-shot timers correctly · matplotlib/matplotlib@9eda24f · GitHub
Skip to content

Commit 9eda24f

Browse files
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

Lines changed: 5 additions & 4 deletions

File tree

lib/matplotlib/backends/backend_macosx.py

Lines changed: 0 additions & 4 deletions

src/_macosx.m

Lines changed: 5 additions & 0 deletions

0 commit comments

Comments
 (0)