Skip to content

Commit

Permalink
Fix crash when closing frame while fullscreen
Browse files Browse the repository at this point in the history
Reported by Joseph Perez
  • Loading branch information
davidswelt committed Oct 13, 2013
1 parent 7a687bf commit cdc12d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/nsterm.m
Expand Up @@ -1160,6 +1160,7 @@ Free a pool and temporary objects it refers to (callable from C)
}

xfree (f->output_data.ns);
f->output_data.ns = 0;

[[view window] close];
[view release];
Expand Down Expand Up @@ -6411,6 +6412,10 @@ - (NSSize)window:(NSWindow *)window willUseFullScreenContentSize:(NSSize)propose
}

- (void)windowDidExitFullScreen:(NSNotification *)notification {


if (!emacsframe || !emacsframe->output_data.ns || ns_in_resize || ! FRAME_LIVE_P (emacsframe))
return;

NSWindow* window = [notification object];

Expand Down

0 comments on commit cdc12d6

Please sign in to comment.