diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2005-03-30 18:40:55 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2005-03-30 18:40:55 +0000 |
commit | 01d7d9e9fe872d41511ff2e886156014673e107f (patch) | |
tree | 1814d097770a88e38a3f992cce771971fd232e0e /ext/musepack | |
parent | 2cb44255934fe20fd828fdabc84f1ea86544a058 (diff) | |
download | gst-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
Diffstat (limited to 'ext/musepack')
-rw-r--r-- | ext/musepack/gstmusepackdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |