From: Po Lu Date: Sun, 17 Apr 2022 07:16:03 +0000 (+0000) Subject: * src/haikufns.c (haiku_free_frame_resources): Free saved menu event. X-Git-Tag: emacs-29.0.90~1931^2~480 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5a18cd8821783b9503452496eab42fa4f8b436cd;p=emacs.git * src/haikufns.c (haiku_free_frame_resources): Free saved menu event. --- diff --git a/src/haikufns.c b/src/haikufns.c index 874ebaaf919..128831dec2a 100644 --- a/src/haikufns.c +++ b/src/haikufns.c @@ -1544,6 +1544,9 @@ haiku_free_frame_resources (struct frame *f) if (window) BWindow_quit (window); + if (FRAME_OUTPUT_DATA (f)->saved_menu_event) + xfree (FRAME_OUTPUT_DATA (f))->saved_menu_event; + xfree (FRAME_OUTPUT_DATA (f)); FRAME_OUTPUT_DATA (f) = NULL;