pad: fix sticky event leak after sticky_events_foreach
authorThiago Santos <ts.santos@sisa.samsung.com>
Sat, 18 Jan 2014 01:53:01 +0000 (22:53 -0300)
committerThiago Santos <ts.santos@sisa.samsung.com>
Sat, 18 Jan 2014 02:11:49 +0000 (23:11 -0300)
commit75fe1004a52435afbe5abf68c1128ec5db62c3d6
tree6ef1dd40bde84e5d1d310a2068bbd8e9439d219d
parent0264bbdb46526ef08e3bc8e5c1b93d2142c9aa7f
pad: fix sticky event leak after sticky_events_foreach

events_foreach adds an extra ref when giving the event to the
user function. In case it was unrefed by the user, this extra ref
disappeared, but events_foreach still should unref again to
lose its own ref before removing the event from the array.

https://bugzilla.gnome.org/show_bug.cgi?id=722467
gst/gstpad.c