diff options
author | Stefan Kost <ensonic@users.sourceforge.net> | 2006-05-02 18:50:23 +0000 |
---|---|---|
committer | Stefan Kost <ensonic@users.sourceforge.net> | 2006-05-02 18:50:23 +0000 |
commit | cba47ec36158643ca7327955aaab5bf47561e689 (patch) | |
tree | af36b60e6db8028dd3836809f5979d26bc5131bb /gst/debug | |
parent | 2b4ba77c27f24bd8e7ee94ca1a10acf3076bb437 (diff) |
gst/: don't leak caps-string
Original commit message from CVS:
* gst/alpha/gstalphacolor.c: (gst_alpha_color_transform_caps):
* gst/debug/negotiation.c: (gst_negotiation_update_caps):
* gst/rtp/gstrtpilbcdepay.c: (gst_rtp_ilbc_depay_setcaps):
don't leak caps-string
Diffstat (limited to 'gst/debug')
-rw-r--r-- | gst/debug/negotiation.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gst/debug/negotiation.c b/gst/debug/negotiation.c index e28b2cf5..21357da3 100644 --- a/gst/debug/negotiation.c +++ b/gst/debug/negotiation.c @@ -237,6 +237,7 @@ gst_negotiation_update_caps (GstNegotiation * negotiation) GstCaps *srccaps; GstCaps *sinkcaps; GstCaps *icaps; + gchar *icapsstr; srccaps = gst_pad_get_allowed_caps (negotiation->srcpad); sinkcaps = gst_pad_get_allowed_caps (negotiation->sinkpad); @@ -247,7 +248,9 @@ gst_negotiation_update_caps (GstNegotiation * negotiation) gst_caps_replace (&negotiation->caps, icaps); g_object_notify (G_OBJECT (negotiation), "allowed-caps"); - g_print ("notify %s", gst_caps_to_string (icaps)); + icapsstr = gst_caps_to_string (icaps); + GST_DEBUG ("notify %s", icapsstr); + g_free (icapsstr); } static void |