From e3d8f497baaf02daeddb060cd986681d0ee208de Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 17 Sep 2012 11:26:09 +0200 Subject: Fix history memory leak With `history = 0` playlist items are discarded, but not freed. --- src/ui.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ui.c') diff --git a/src/ui.c b/src/ui.c index 8543018..d5def60 100644 --- a/src/ui.c +++ b/src/ui.c @@ -894,6 +894,8 @@ void BarUiHistoryPrepend (BarApp_t *app, PianoSong_t *song) { PianoDestroyPlaylist (delSong); } } + } else { + PianoDestroyPlaylist (song); } } -- cgit v1.2.3