forked from joejulian/gio
baa98e7737
window.Wakeup assumes the window.w field is never reset to nil. Avoid doing that in gio_onClose. While here, ensure a valid window handle in window.Close by calling the checked window.runOnMain method, not the bare runOnMain function. Fixes gio#258 Signed-off-by: Elias Naur <mail@eliasnaur.com>