X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=mp3dec_filter.c;h=2472b2cfa70b916d69b7d9c962aceb79050acd38;hp=397a2420c33e2a7bbeadb2ee641e933b79bb9b8a;hb=c282c836791cedf57c128555af90af37c7c01c05;hpb=fb6d93240bb9c7c3d2c8e1826d722296002fb487 diff --git a/mp3dec_filter.c b/mp3dec_filter.c index 397a2420..2472b2cf 100644 --- a/mp3dec_filter.c +++ b/mp3dec_filter.c @@ -179,7 +179,6 @@ static void mp3dec_close(struct filter_node *fn) free(fn->buf); fn->buf = NULL; - mp3dec_cmdline_parser_free(fn->conf); free(pmd); fn->private_data = NULL; } @@ -318,6 +317,11 @@ static int mp3dec_execute(struct btr_node *btrn, const char *cmd, char **result) } return -ERRNO_TO_PARA_ERROR(ENOTSUP); } + +static void mp3dec_free_config(void *conf) +{ + mp3dec_cmdline_parser_free(conf); +} /** * The init function of the mp3dec filter. * @@ -334,6 +338,7 @@ void mp3dec_filter_init(struct filter *f) f->convert = mp3dec; f->close = mp3dec_close; f->parse_config = mp3dec_parse_config; + f->free_config = mp3dec_free_config; f->pre_select = generic_filter_pre_select; f->post_select = mp3dec_post_select; f->execute = mp3dec_execute;