diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-11 15:40:37 +0100 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-11 15:40:37 +0100 |
commit | 32a70cef7fdce1648d6850dafbe78bee04830429 (patch) | |
tree | 537db314667778898110667991063cd9a915e304 /src/libspucc/xine_cc_decoder.c | |
parent | 448923a2d401f3e21eb586f50c1ca9e2dd6259d9 (diff) | |
download | xine-lib-32a70cef7fdce1648d6850dafbe78bee04830429.tar.gz xine-lib-32a70cef7fdce1648d6850dafbe78bee04830429.tar.bz2 |
Use default_*_class_dispose macro whenever the class dispose function only called free().
Diffstat (limited to 'src/libspucc/xine_cc_decoder.c')
-rw-r--r-- | src/libspucc/xine_cc_decoder.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libspucc/xine_cc_decoder.c b/src/libspucc/xine_cc_decoder.c index ffb1d17d0..f55b20872 100644 --- a/src/libspucc/xine_cc_decoder.c +++ b/src/libspucc/xine_cc_decoder.c @@ -321,11 +321,6 @@ static spu_decoder_t *spudec_open_plugin (spu_decoder_class_t *class, xine_strea return &this->spu_decoder; } -static void spudec_class_dispose(spu_decoder_class_t *class) { - free(class); -} - - static void *init_spu_decoder_plugin (xine_t *xine, void *data) { spucc_class_t *this ; @@ -335,7 +330,7 @@ static void *init_spu_decoder_plugin (xine_t *xine, void *data) { this->spu_class.open_plugin = spudec_open_plugin; this->spu_class.identifier = "spucc"; this->spu_class.description = N_("closed caption decoder plugin"); - this->spu_class.dispose = spudec_class_dispose; + this->spu_class.dispose = default_spu_decoder_class_dispose; spucc_register_cfg_vars(this, xine->config); this->cc_cfg.config_version = 0; |