element: Unref event if GstElement::send_event() is not implemented
authorSebastian Dröge <sebastian@centricular.com>
Mon, 14 Dec 2015 09:10:04 +0000 (10:10 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 14 Dec 2015 09:10:04 +0000 (10:10 +0100)
commit615af0b1b02f58cd77182afd3477b8036dc00d81
tree7522e5f9ef9e7ba5fad87262659ef5ee08acbd64
parentad5c97e44eaf3584e8777a35865804e129d9234e
element: Unref event if GstElement::send_event() is not implemented

Otherwise we'll take ownership of the event only if it's implemented, and
leak the event in all other situations.
gst/gstelement.c