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.
This commit is contained in:
Max Kellermann 2009-02-02 18:18:25 +01:00
parent 4b7c28f98e
commit 1fdf25214f
1 changed files with 2 additions and 0 deletions

View File

@ -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)