forked from joejulian/gio
513250122c
The windowWillClose callback is too soon to destroy our Window: at least draw callbacks may be called after windowWillClose but before the window is gone. This change moves cleanup to the viewDidMoveToWindow callback where we're sure the NSView is no longer active. Fixes: https://todo.sr.ht/~eliasnaur/gio/466 Signed-off-by: Elias Naur <mail@eliasnaur.com>