From 32a70cef7fdce1648d6850dafbe78bee04830429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Tue, 11 Dec 2007 15:40:37 +0100 Subject: Use default_*_class_dispose macro whenever the class dispose function only called free(). --- src/libsputext/demux_sputext.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/libsputext') diff --git a/src/libsputext/demux_sputext.c b/src/libsputext/demux_sputext.c index 68f436729..6e8b1a646 100644 --- a/src/libsputext/demux_sputext.c +++ b/src/libsputext/demux_sputext.c @@ -1459,12 +1459,6 @@ static const char *get_demux_mimetypes (demux_class_t *this_gen) { /* "text/plain: asc txt sub srt: VIDEO subtitles;" */ } -static void demux_class_dispose (demux_class_t *this_gen) { - demux_sputext_class_t *this = (demux_sputext_class_t *) this_gen; - - free (this); -} - static void config_timeout_cb(void *this_gen, xine_cfg_entry_t *entry) { demux_sputext_class_t *this = (demux_sputext_class_t *)this_gen; @@ -1484,7 +1478,7 @@ static void *init_sputext_demux_class (xine_t *xine, void *data) { this->demux_class.identifier = "sputext"; this->demux_class.get_mimetypes = get_demux_mimetypes; this->demux_class.get_extensions = get_demux_extensions; - this->demux_class.dispose = demux_class_dispose; + this->demux_class.dispose = default_demux_class_dispose; /* * Some subtitling formats, namely AQT and Subrip09, define the end of a -- cgit v1.2.3