From 01d7d9e9fe872d41511ff2e886156014673e107f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 30 Mar 2005 18:40:55 +0000 Subject: Don't leak caps Original commit message from CVS: Don't leak caps --- ChangeLog | 5 +++++ ext/musepack/gstmusepackdec.c | 2 ++ 2 files changed, 7 insertions(+) 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 + + * ext/musepack/gstmusepackdec.c: (gst_musepack_stream_init): + Don't leak caps. + 2005-03-30 Ronald S. Bultje * 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; } -- cgit v1.2.1