From 71a16aec91d1c4fa11ef1735979d7c57bae3363f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 14 Aug 2009 23:50:25 +0200 Subject: [PATCH] screen_song: free mpd_stats object Fix a memory leak. --- src/screen_song.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/screen_song.c b/src/screen_song.c index 87a7891..6f1c8b8 100644 --- a/src/screen_song.c +++ b/src/screen_song.c @@ -284,6 +284,8 @@ screen_song_add_stats(const mpdclient_t *c) g_date_strftime(buf, sizeof(buf), "%x", date); screen_song_append(labels[DBUPTIME], buf, max_label_width); g_date_free(date); + + mpd_freeStats(mpd_stats); } } -- 2.30.2