From 5a18cd8821783b9503452496eab42fa4f8b436cd Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sun, 17 Apr 2022 07:16:03 +0000 Subject: [PATCH] * src/haikufns.c (haiku_free_frame_resources): Free saved menu event. --- src/haikufns.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.2