[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 5a18cd8821 2/5: * src/haikufns.c (haiku_free_frame_resources): Fr
From: |
Po Lu |
Subject: |
master 5a18cd8821 2/5: * src/haikufns.c (haiku_free_frame_resources): Free saved menu event. |
Date: |
Sun, 17 Apr 2022 04:14:30 -0400 (EDT) |
branch: master
commit 5a18cd8821783b9503452496eab42fa4f8b436cd
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
* 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 874ebaaf91..128831dec2 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;