From 3b0a78fe0dc9f4110692975f54cd1e585d2c6e27 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 2 Feb 2009 18:19:11 +0100 Subject: shout_mp3: call lame_close() in clear_encoder() method The shout_mp3 encoder had two bugs: when no song was ever played, MPD segfaulted during cleanup. Second bug: memory leak, each time the shout device was opened, lame_init() was called again, and lame_close() is only called once during shutdown. Fix this by shutting down LAME each time the clear_encoder() method is called. --- NEWS | 1 + 1 file changed, 1 insertion(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 0190d4cc5..424c5ead3 100644 --- a/NEWS +++ b/NEWS @@ -43,6 +43,7 @@ ver 0.14.2 (2009/??/??) - jack: allocate ring buffers before connecting - jack: clear "shutdown" flag on reconnect - jack: reduced sleep time to 1ms + - shout: fixed memory leak in the mp3 encoder * mapper: remove trailing slashes from music_directory * player: set player error when output device fails -- cgit v1.2.3