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/demuxers/demux_yuv4mpeg2.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/demuxers/demux_yuv4mpeg2.c')
-rw-r--r-- | src/demuxers/demux_yuv4mpeg2.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/demuxers/demux_yuv4mpeg2.c b/src/demuxers/demux_yuv4mpeg2.c index 02165b016..eaed4c274 100644 --- a/src/demuxers/demux_yuv4mpeg2.c +++ b/src/demuxers/demux_yuv4mpeg2.c @@ -460,12 +460,6 @@ static const char *get_mimetypes (demux_class_t *this_gen) { return NULL; } -static void class_dispose (demux_class_t *this_gen) { - demux_yuv4mpeg2_class_t *this = (demux_yuv4mpeg2_class_t *) this_gen; - - free (this); -} - static void *init_plugin (xine_t *xine, void *data) { demux_yuv4mpeg2_class_t *this; @@ -476,7 +470,7 @@ static void *init_plugin (xine_t *xine, void *data) { this->demux_class.identifier = "YUV4MPEG2"; this->demux_class.get_mimetypes = get_mimetypes; this->demux_class.get_extensions = get_extensions; - this->demux_class.dispose = class_dispose; + this->demux_class.dispose = default_demux_class_dispose; return this; } |