diff options
author | Max Kellermann <max@duempel.org> | 2009-02-02 18:18:25 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-02-02 18:18:25 +0100 |
commit | 39f01632009e11a728afe440e58332b88490ba47 (patch) | |
tree | 4ca995a2ae27fe32745a7f398b98c96705825623 /src/output | |
parent | 96e9b442255365f73a8efcbaeb118ff56dfd8318 (diff) | |
download | mpd-39f01632009e11a728afe440e58332b88490ba47.tar.gz mpd-39f01632009e11a728afe440e58332b88490ba47.tar.xz mpd-39f01632009e11a728afe440e58332b88490ba47.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.
Diffstat (limited to 'src/output')
-rw-r--r-- | src/output/shout_mp3.c | 2 |
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) |