From ac256b5d1580ce1691d38192132b3ebbfa661e3c Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Thu, 20 Sep 2007 15:06:23 +0000 Subject: Fix memory leaks. More to come. Original commit message from CVS: * ext/alsaspdif/alsaspdifsink.c: * ext/timidity/gsttimidity.c: * ext/timidity/gstwildmidi.c: * gst/mpegvideoparse/mpegvideoparse.c: Fix memory leaks. More to come. * tests/check/Makefile.am: * tests/check/generic/states.c: Improved state change unit test. --- gst/mpegvideoparse/mpegvideoparse.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gst') diff --git a/gst/mpegvideoparse/mpegvideoparse.c b/gst/mpegvideoparse/mpegvideoparse.c index cd5fd699..ffce53ba 100644 --- a/gst/mpegvideoparse/mpegvideoparse.c +++ b/gst/mpegvideoparse/mpegvideoparse.c @@ -89,7 +89,7 @@ enum static void gst_mpegvideoparse_class_init (MpegVideoParseClass * klass); static void gst_mpegvideoparse_base_init (MpegVideoParseClass * klass); static void gst_mpegvideoparse_init (MpegVideoParse * mpegvideoparse); -static void gst_mpegvideoparse_dispose (MpegVideoParse * mpegvideoparse); +static void gst_mpegvideoparse_dispose (GObject * object); static GstFlowReturn gst_mpegvideoparse_chain (GstPad * pad, GstBuffer * buf); static gboolean mpv_parse_sink_event (GstPad * pad, GstEvent * event); @@ -185,10 +185,14 @@ gst_mpegvideoparse_init (MpegVideoParse * mpegvideoparse) } void -gst_mpegvideoparse_dispose (MpegVideoParse * mpegvideoparse) +gst_mpegvideoparse_dispose (GObject * object) { + MpegVideoParse *mpegvideoparse = GST_MPEGVIDEOPARSE (object); + mpeg_packetiser_free (&mpegvideoparse->packer); gst_buffer_replace (&mpegvideoparse->seq_hdr_buf, NULL); + + G_OBJECT_CLASS (parent_class)->dispose (object); } static gboolean -- cgit v1.2.1