summaryrefslogtreecommitdiff
path: root/gst/nuvdemux
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2009-08-31 13:14:02 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-08-31 13:14:02 +0100
commit10d67eda7a2efff834e67b6c34a092494005a1b0 (patch)
treee2318dc4994c6395c13503fa05e5c2f5502b29ff /gst/nuvdemux
parentd94d572e16c590ed619bfaed23100b80516ce6f7 (diff)
downloadgstreamer-plugins-bad-10d67eda7a2efff834e67b6c34a092494005a1b0.tar.gz
GstAdapter is not a GstObject and should be freed with g_object_unref()
Diffstat (limited to 'gst/nuvdemux')
-rw-r--r--gst/nuvdemux/gstnuvdemux.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/nuvdemux/gstnuvdemux.c b/gst/nuvdemux/gstnuvdemux.c
index 27fa39672..bb2e532ae 100644
--- a/gst/nuvdemux/gstnuvdemux.c
+++ b/gst/nuvdemux/gstnuvdemux.c
@@ -191,7 +191,8 @@ gst_nuv_demux_finalize (GObject * object)
gst_nuv_demux_destoy_src_pad (nuv);
gst_nuv_demux_reset (nuv);
if (nuv->adapter != NULL) {
- gst_object_unref (nuv->adapter);
+ g_object_unref (nuv->adapter);
+ nuv->adapter = NULL;
}
G_OBJECT_CLASS (parent_class)->finalize (object);
}
@@ -800,7 +801,7 @@ gst_nuv_demux_sink_activate (GstPad * sinkpad)
if (gst_pad_check_pull_range (sinkpad)) {
nuv->mode = 0;
if (nuv->adapter != NULL) {
- gst_object_unref (nuv->adapter);
+ g_object_unref (nuv->adapter);
nuv->adapter = NULL;
}
res = gst_pad_activate_pull (sinkpad, TRUE);