summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--gst/matroska/matroska-demux.c1
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index e9712396..280d147a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-05-04 Tim-Philipp Müller <tim at centricular dot net>
+
+ Patch by: Michal Benes <michal dot benes at xeris dot cz>
+
+ * gst/matroska/matroska-demux.c: (gst_matroska_demux_reset):
+ Don't leak caps when freeing the stream context (#340623).
+
2006-05-04 Jan Schmidt <thaytan@mad.scientist.com>
* configure.ac:
diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c
index 9f922c8b..fff021c9 100644
--- a/gst/matroska/matroska-demux.c
+++ b/gst/matroska/matroska-demux.c
@@ -227,6 +227,7 @@ gst_matroska_demux_reset (GstElement * element)
if (demux->src[i]->pad != NULL) {
gst_element_remove_pad (GST_ELEMENT (demux), demux->src[i]->pad);
}
+ gst_caps_replace (&demux->src[i]->caps, NULL);
g_free (demux->src[i]->codec_id);
g_free (demux->src[i]->codec_name);
g_free (demux->src[i]->name);