diff options
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); +} |
