diff --git a/src/watchlist.c b/src/watchlist.c index 061b193b..6166f827 100644 --- a/src/watchlist.c +++ b/src/watchlist.c @@ -128,12 +128,14 @@ static void __watchlist_clear(struct watchlist *watchlist) void watchlist_destroy(struct watchlist *watchlist) { __watchlist_clear(watchlist); + l_queue_destroy(watchlist->items, NULL); watchlist->items = NULL; } void watchlist_free(struct watchlist *watchlist) { __watchlist_clear(watchlist); + l_queue_destroy(watchlist->items, NULL); l_free(watchlist); }