rtpg726pay: fix caps leak

https://bugzilla.gnome.org/show_bug.cgi?id=749544
This commit is contained in:
Nicola Murino 2015-05-18 16:40:21 +02:00 committed by Tim-Philipp Müller
parent 335afc982b
commit 5e226d63f9

View file

@ -202,6 +202,7 @@ gst_rtp_g726_pay_setcaps (GstRTPBasePayload * payload, GstCaps * caps)
/* intersect to filter */
intersect = gst_caps_intersect (peercaps, filter);
gst_caps_unref (peercaps);
gst_caps_unref (filter);
GST_DEBUG_OBJECT (payload, "intersected to %" GST_PTR_FORMAT, intersect);