diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/nsterm.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nsterm.m b/src/nsterm.m index 3d58cd5ec64..c8ae31abc09 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -1692,6 +1692,10 @@ x_free_frame_resources (struct frame *f) | |||
| 1692 | dpyinfo->x_highlight_frame = 0; | 1692 | dpyinfo->x_highlight_frame = 0; |
| 1693 | if (f == hlinfo->mouse_face_mouse_frame) | 1693 | if (f == hlinfo->mouse_face_mouse_frame) |
| 1694 | reset_mouse_highlight (hlinfo); | 1694 | reset_mouse_highlight (hlinfo); |
| 1695 | /* Ensure that sendEvent does not attempt to dereference a freed | ||
| 1696 | frame. (bug#30800) */ | ||
| 1697 | if (represented_frame == f) | ||
| 1698 | represented_frame = NULL; | ||
| 1695 | 1699 | ||
| 1696 | if (f->output_data.ns->miniimage != nil) | 1700 | if (f->output_data.ns->miniimage != nil) |
| 1697 | [f->output_data.ns->miniimage release]; | 1701 | [f->output_data.ns->miniimage release]; |