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:
parent
4b7c28f98e
commit
1fdf25214f
@ -54,6 +54,8 @@ static void shout_mp3_encoder_finish(struct shout_data *sd)
|
|||||||
|
|
||||||
lame_close(ld->gfp);
|
lame_close(ld->gfp);
|
||||||
ld->gfp = NULL;
|
ld->gfp = NULL;
|
||||||
|
|
||||||
|
g_free(ld);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int shout_mp3_encoder_init_encoder(struct shout_data *sd)
|
static int shout_mp3_encoder_init_encoder(struct shout_data *sd)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user