FIX: macosx, clear pending timers when the figure is destroyed · matplotlib/matplotlib@fe6366d · GitHub
Skip to content

Commit fe6366d

Browse files
committed
FIX: macosx, clear pending timers when the figure is destroyed
Running the macosx backend without calling show() would cause Timers to pile up and not fire because the event loop was not running. This leaked objects when closing/opening multiple figures. To fix this, we keep track of the timers on the canvas and remove all of the pending timers when destroying the figure to clear all back-references.
1 parent f628679 commit fe6366d

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

lib/matplotlib/backends/backend_macosx.py

Lines changed: 14 additions & 2 deletions

0 commit comments

Comments
 (0)