From fbc180dbec93f68f22743f488b7cdc698ce09bb1 Mon Sep 17 00:00:00 2001 From: LI Qingwu Date: Wed, 22 Jan 2025 14:58:14 +0800 Subject: [PATCH] Release resources for built-in menu when invalidating actions Add menu_free_array call in notification_invalidate_actions, ensure proper cleanup of menu resources when invalidating actions Signed-off-by: LI Qingwu --- src/notification.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/notification.c b/src/notification.c index 6a0d4fe40..8374f7f0a 100644 --- a/src/notification.c +++ b/src/notification.c @@ -793,6 +793,7 @@ void notification_open_context_menu(struct notification *n) void notification_invalidate_actions(struct notification *n) { g_hash_table_remove_all(n->actions); + menu_free_array(n); } void notification_keep_original(struct notification *n)