summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2005-03-30 18:40:55 +0000
committerTim-Philipp Müller <tim@centricular.net>2005-03-30 18:40:55 +0000
commit01d7d9e9fe872d41511ff2e886156014673e107f (patch)
tree1814d097770a88e38a3f992cce771971fd232e0e
parent2cb44255934fe20fd828fdabc84f1ea86544a058 (diff)
downloadgst-plugins-bad-01d7d9e9fe872d41511ff2e886156014673e107f.tar.gz
gst-plugins-bad-01d7d9e9fe872d41511ff2e886156014673e107f.tar.bz2
gst-plugins-bad-01d7d9e9fe872d41511ff2e886156014673e107f.zip
Don't leak caps
Original commit message from CVS: Don't leak caps
-rw-r--r--ChangeLog5
-rw-r--r--ext/musepack/gstmusepackdec.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 835db537..9beb4c9b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-03-30 Tim-Philipp Müller <tim at centricular dot net>
+
+ * ext/musepack/gstmusepackdec.c: (gst_musepack_stream_init):
+ Don't leak caps.
+
2005-03-30 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/playback/gstplaybasebin.c: (setup_subtitle):
diff --git a/ext/musepack/gstmusepackdec.c b/ext/musepack/gstmusepackdec.c
index 656360a6..c699c265 100644
--- a/ext/musepack/gstmusepackdec.c
+++ b/ext/musepack/gstmusepackdec.c
@@ -400,6 +400,7 @@ gst_musepack_stream_init (GstMusepackDec * musepackdec)
"rate", G_TYPE_INT, i.sample_freq, NULL);
if (!gst_pad_set_explicit_caps (musepackdec->srcpad, caps)) {
GST_ELEMENT_ERROR (musepackdec, CORE, NEGOTIATION, (NULL), (NULL));
+ gst_caps_free (caps);
return FALSE;
}
@@ -409,6 +410,7 @@ gst_musepack_stream_init (GstMusepackDec * musepackdec)
musepackdec->len = mpc_streaminfo_get_length_samples (&i);
musepackdec->init = TRUE;
+ gst_caps_free (caps);
return TRUE;
}