element: unref message in _post_message when there is no implementation
authorAurélien Zanelli <aurelien.zanelli@parrot.com>
Thu, 10 Dec 2015 13:32:27 +0000 (14:32 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 10 Dec 2015 14:44:31 +0000 (16:44 +0200)
commit51a70dd586c971eb198b7760cd5a885e2606ef1d
treef96c46821e3074321603265d8f93e9c4d50406d2
parentb427997119a2b6aacbeb550f729936f8b963e24b
element: unref message in _post_message when there is no implementation

'gst_element_post_message' takes the ownership of the message, so it
shall unref it when there is no post_message implementation. Otherwise
message is leaked.

https://bugzilla.gnome.org/show_bug.cgi?id=759300
gst/gstelement.c