diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/musepack/gstmusepackdec.c | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -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; } |