Skip to content

Commit

Permalink
Release resources for built-in menu when invalidating actions
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Qingwu-Li committed Jan 23, 2025
1 parent e338a28 commit fbc180d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/notification.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fbc180d

Please sign in to comment.