From: Max Kellermann Date: Fri, 14 Aug 2009 21:50:25 +0000 (+0200) Subject: screen_song: free mpd_stats object X-Git-Tag: release-0.15~34 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=71a16aec91d1c4fa11ef1735979d7c57bae3363f;p=ncmpc.git screen_song: free mpd_stats object Fix a memory leak. --- 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); } }