summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sourceforge.net>2007-09-20 15:06:23 +0000
committerStefan Kost <ensonic@users.sourceforge.net>2007-09-20 15:06:23 +0000
commitac256b5d1580ce1691d38192132b3ebbfa661e3c (patch)
tree998a7ac34735ee7727ddb322df14ccdd9c19f7f2 /gst
parent7067d01d2a9e46a52f347cfa777e5a50f1d41494 (diff)
downloadgst-plugins-bad-ac256b5d1580ce1691d38192132b3ebbfa661e3c.tar.gz
gst-plugins-bad-ac256b5d1580ce1691d38192132b3ebbfa661e3c.tar.bz2
gst-plugins-bad-ac256b5d1580ce1691d38192132b3ebbfa661e3c.zip
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.
Diffstat (limited to 'gst')
-rw-r--r--gst/mpegvideoparse/mpegvideoparse.c8
1 files changed, 6 insertions, 2 deletions
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