imagefreeze: Unref pad template caps after usage

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=734475
This commit is contained in:
Sebastian Rasmussen 2014-08-08 12:40:49 +02:00 committed by Thiago Santos
parent edf8728016
commit c85ae43a6e

View file

@ -192,6 +192,7 @@ gst_image_freeze_sink_setcaps (GstImageFreeze * self, GstCaps * caps)
GST_DEBUG_OBJECT (pad, "with: %" GST_PTR_FORMAT, othercaps);
GST_DEBUG_OBJECT (pad, "gave: %" GST_PTR_FORMAT, intersection);
gst_caps_unref (caps);
gst_caps_unref (othercaps);
caps = intersection;
intersection = othercaps = NULL;