diff options
author | Max Kellermann <max@duempel.org> | 2008-11-19 00:06:46 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-19 00:06:46 +0100 |
commit | b9e06987c6dbbb96b5c7e8c67f29ad489f94f534 (patch) | |
tree | 95f76ac444be98e40d78edcb23be3ad84fe6bac2 /src | |
parent | b0bfd3def11a6a90c9aebe223299bb59629c0464 (diff) | |
download | mpd-b9e06987c6dbbb96b5c7e8c67f29ad489f94f534.tar.gz mpd-b9e06987c6dbbb96b5c7e8c67f29ad489f94f534.tar.xz mpd-b9e06987c6dbbb96b5c7e8c67f29ad489f94f534.zip |
screen_song: free the song pointer
Fix a memory leak.
Diffstat (limited to '')
-rw-r--r-- | src/screen_song.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/screen_song.c b/src/screen_song.c index 7dd9b5798..202025ee8 100644 --- a/src/screen_song.c +++ b/src/screen_song.c @@ -35,6 +35,11 @@ screen_song_clear(void) g_free(g_ptr_array_index(current.lines, i)); g_ptr_array_set_size(current.lines, 0); + + if (current.song != NULL) { + mpd_freeSong(current.song); + current.song = NULL; + } } static void |