diff -r ce342364fad5 -r c284c15509a8 ui/cocoa/window.m --- a/ui/cocoa/window.m Wed Jul 13 16:40:59 2016 +0200 +++ b/ui/cocoa/window.m Sat Sep 17 19:32:44 2016 +0200 @@ -186,6 +186,7 @@ obj->widget = (NSView*)window; obj->window = window_data; + obj->document = NULL; obj->container = ui_window_container(obj, window);