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/audio_out/audio_oss_out.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/audio_out/audio_oss_out.c') diff --git a/src/audio_out/audio_oss_out.c b/src/audio_out/audio_oss_out.c index 52ab01a08..a50296b23 100644 --- a/src/audio_out/audio_oss_out.c +++ b/src/audio_out/audio_oss_out.c @@ -1145,14 +1145,6 @@ static void oss_speaker_arrangement_cb (void *user_data, /* * class functions */ - -static void dispose_class (audio_driver_class_t *this_gen) { - - oss_class_t *this = (oss_class_t *) this_gen; - - free (this); -} - static void *init_class (xine_t *xine, void *data) { oss_class_t *this; @@ -1164,7 +1156,7 @@ static void *init_class (xine_t *xine, void *data) { this->driver_class.open_plugin = open_plugin; this->driver_class.identifier = "oss"; this->driver_class.description = N_("xine audio output plugin using oss-compliant audio devices/drivers"); - this->driver_class.dispose = dispose_class; + this->driver_class.dispose = default_audio_driver_class_dispose; this->config = xine->config; this->xine = xine; -- cgit v1.2.3