From 1fdf25214f1c4c6d2df1a6386d4091ec07c94ef9 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Mon, 2 Feb 2009 18:18:25 +0100
Subject: [PATCH] shout_mp3: free the lame_data struct on exit

Make valgrind a little bit happier: free the global lame_data struct
in the finish() method.
---
 src/output/shout_mp3.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/output/shout_mp3.c b/src/output/shout_mp3.c
index 7fae699b0..eb95c8b3e 100644
--- a/src/output/shout_mp3.c
+++ b/src/output/shout_mp3.c
@@ -54,6 +54,8 @@ static void shout_mp3_encoder_finish(struct shout_data *sd)
 
 	lame_close(ld->gfp);
 	ld->gfp = NULL;
+
+	g_free(ld);
 }
 
 static int shout_mp3_encoder_init_encoder(struct shout_data *sd)