diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-09-09 17:00:30 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-09-09 17:00:30 +0000 |
| commit | 99023cae99d97c6965de19ff38d2f0516153a37e (patch) | |
| tree | 241a7714296d46ef9f9dc5e9f420b23850224504 /user-notification.h | |
| parent | Merge branch 'keymap-shift-return' into master (diff) | |
| parent | Add -W,--window-size-chars, and foot.ini:initial-window-size-chars (diff) | |
Merge branch 'window-size-in-characters' into master
Diffstat (limited to 'user-notification.h')
| -rw-r--r-- | user-notification.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/user-notification.h b/user-notification.h index 1777d521..f184871e 100644 --- a/user-notification.h +++ b/user-notification.h @@ -14,3 +14,11 @@ struct user_notification { }; typedef tll(struct user_notification) user_notifications_t; + +static inline void +user_notifications_free(user_notifications_t *notifications) +{ + tll_foreach(*notifications, it) + free(it->item.text); + tll_free(*notifications); +} |
