aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-02 18:18:25 +0100
committerMax Kellermann <max@duempel.org>2009-02-02 18:22:53 +0100
commit1fdf25214f1c4c6d2df1a6386d4091ec07c94ef9 (patch)
treead6a0957b92cc907aa40df7953422e14d4901b2c
parent4b7c28f98eb539a73415030fc9c914444d33b2ef (diff)
downloadmpd-1fdf25214f1c4c6d2df1a6386d4091ec07c94ef9.tar.gz
mpd-1fdf25214f1c4c6d2df1a6386d4091ec07c94ef9.tar.xz
mpd-1fdf25214f1c4c6d2df1a6386d4091ec07c94ef9.zip
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.
-rw-r--r--src/output/shout_mp3.c2
1 files changed, 2 insertions, 0 deletions
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)