summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2015-07-30 16:39:03 -0400
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2015-08-06 17:40:40 +0100
commit4665c0802a8ca087c1f222fcef5ec15d48953969 (patch)
tree40705565ad60d7c2f4f431b7427da70905bdcac1
parent0a3fe31f26d254a9570eb01f8e61468ba3014d53 (diff)
oggdemux: Set chain pointers to NULL
Otherwise, they will refer to freed memory https://bugzilla.gnome.org/show_bug.cgi?id=753078
-rw-r--r--ext/ogg/gstoggdemux.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c
index 3042fcaa9..ee750b25b 100644
--- a/ext/ogg/gstoggdemux.c
+++ b/ext/ogg/gstoggdemux.c
@@ -2777,6 +2777,7 @@ gst_ogg_demux_deactivate_current_chain (GstOggDemux * ogg)
if (!ogg->pullmode) {
if (ogg->building_chain == chain)
ogg->building_chain = NULL;
+ ogg->current_chain = NULL;
gst_ogg_chain_free (chain);
}
@@ -4920,6 +4921,8 @@ gst_ogg_demux_clear_chains (GstOggDemux * ogg)
gst_ogg_chain_free (chain);
}
ogg->chains = g_array_set_size (ogg->chains, 0);
+ ogg->current_chain = NULL;
+ ogg->building_chain = NULL;
GST_CHAIN_UNLOCK (ogg);
}