Skip to content

Commit bbf6888

Browse files
committed
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 <[email protected]>
1 parent 7edd21a commit bbf6888

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/notification.c

+1
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,7 @@ void notification_open_context_menu(struct notification *n)
793793

794794
void notification_invalidate_actions(struct notification *n) {
795795
g_hash_table_remove_all(n->actions);
796+
menu_free_array(n);
796797
}
797798

798799
void notification_keep_original(struct notification *n)

0 commit comments

Comments
 (0)