summaryrefslogtreecommitdiff
path: root/src/liba52/xine_decoder.c
diff options
context:
space:
mode:
authorEwald Snel <esnel@users.sourceforge.net>2002-04-23 13:30:42 +0000
committerEwald Snel <esnel@users.sourceforge.net>2002-04-23 13:30:42 +0000
commit2238f0536fa7bb4ad6d59ff38ed040dc4d81ff64 (patch)
tree41c61dbec58d9c610019cf4dade18416c6076d91 /src/liba52/xine_decoder.c
parent8cab88a56f0c9fcaa14ea197ad8a95c58024abfc (diff)
downloadxine-lib-2238f0536fa7bb4ad6d59ff38ed040dc4d81ff64.tar.gz
xine-lib-2238f0536fa7bb4ad6d59ff38ed040dc4d81ff64.tar.bz2
Fix memory leaks by disposing input, demux and decoder plugins at exit
- add dispose() function to all decoder plugin structures CVS patchset: 1763 CVS date: 2002/04/23 13:30:42
Diffstat (limited to 'src/liba52/xine_decoder.c')
-rw-r--r--src/liba52/xine_decoder.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/liba52/xine_decoder.c b/src/liba52/xine_decoder.c
index 017423a78..70d8934ca 100644
--- a/src/liba52/xine_decoder.c
+++ b/src/liba52/xine_decoder.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xine_decoder.c,v 1.23 2002/04/20 18:31:03 miguelfreitas Exp $
+ * $Id: xine_decoder.c,v 1.24 2002/04/23 13:30:43 esnel Exp $
*
* stuff needed to turn liba52 into a xine decoder plugin
*/
@@ -537,6 +537,10 @@ static char *a52dec_get_id(void) {
return "a/52dec";
}
+static void a52dec_dispose (audio_decoder_t *this_gen) {
+ free (this_gen);
+}
+
audio_decoder_t *init_audio_decoder_plugin (int iface_version, xine_t *xine) {
a52dec_decoder_t *this ;
@@ -561,6 +565,7 @@ audio_decoder_t *init_audio_decoder_plugin (int iface_version, xine_t *xine) {
this->audio_decoder.reset = a52dec_reset;
this->audio_decoder.close = a52dec_close;
this->audio_decoder.get_identifier = a52dec_get_id;
+ this->audio_decoder.dispose = a52dec_dispose;
this->audio_decoder.priority = 2;