From: Gerd Möllmann Date: Thu, 15 Sep 2022 13:50:12 +0000 (+0200) Subject: Fix crash in GC on macOS (bug#57751) X-Git-Tag: emacs-29.0.90~1856^2~469 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e3b79c641e04a9e8681e7e27db3db3e4beec0fa4;p=emacs.git Fix crash in GC on macOS (bug#57751) * src/nsterm.m ([EmacsView windowDidMove:]): Initialize input_event. --- diff --git a/src/nsterm.m b/src/nsterm.m index b8b4e66cd11..44979c7c04e 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -7901,7 +7901,6 @@ ns_create_font_panel_buttons (id target, SEL select, SEL cancel_action) NSRect r = [win frame]; NSArray *screens = [NSScreen screens]; NSScreen *screen = [screens objectAtIndex: 0]; - struct input_event ie; NSTRACE ("[EmacsView windowDidMove:]"); @@ -7917,6 +7916,8 @@ ns_create_font_panel_buttons (id target, SEL select, SEL cancel_action) if (emacs_event) { + struct input_event ie; + EVENT_INIT (ie); ie.kind = MOVE_FRAME_EVENT; XSETFRAME (ie.frame_or_window, emacsframe); XSETINT (ie.x, emacsframe->left_pos);