MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / destroy

Method destroy

lib/matplotlib/backends/backend_macosx.py:168–174  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

166 self.canvas.flush_events()
167
168 def destroy(self):
169 # We need to clear any pending timers that never fired, otherwise
170 # we get a memory leak from the timer callbacks holding a reference
171 while self.canvas._timers:
172 timer = self.canvas._timers.pop()
173 timer.stop()
174 super().destroy()
175
176 @classmethod
177 def start_main_loop(cls):

Callers 1

_close_button_pressedMethod · 0.45

Calls 2

stopMethod · 0.80
popMethod · 0.45

Tested by

no test coverage detected