]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/haikufns.c (haiku_free_frame_resources): Free saved menu event.
authorPo Lu <luangruo@yahoo.com>
Sun, 17 Apr 2022 07:16:03 +0000 (07:16 +0000)
committerPo Lu <luangruo@yahoo.com>
Sun, 17 Apr 2022 08:14:05 +0000 (08:14 +0000)
src/haikufns.c

index 874ebaaf9196ed01a1daf908d1c9f5e8fbc7b05e..128831dec2adb855cb4de1c089648cba4ae6df51 100644 (file)
@@ -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;