Frees resources associated with this context if its refcount is zero.
(self)
| 109 | self._platform_free() |
| 110 | |
| 111 | def free(self): |
| 112 | """Frees resources associated with this context if its refcount is zero.""" |
| 113 | if self._refcount == 0: |
| 114 | self._free_unconditionally() |
| 115 | |
| 116 | def _free_unconditionally(self): |
| 117 | self._render_executor.terminate(self._free_on_executor_thread) |