value: free caps during failure
authorVineeth TM <vineeth.tm@samsung.com>
Fri, 7 Aug 2015 01:08:21 +0000 (10:08 +0900)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 7 Aug 2015 08:17:02 +0000 (10:17 +0200)
commit0eb9dde1e803cfff490632553a13f705693710b6
tree499a1330cdc5b4300f673b85e19e049fc3cc8f5a
parent749810b238396c608c6992d3fb6745f892df4541
value: free caps during failure

While calling gst_value_deserialize_sample, if there is a failure
after caps is ref'ed, then caps is getting leaked. Hence checking for
caps in fail: goto condition and unref'ing it

https://bugzilla.gnome.org/show_bug.cgi?id=753338
gst/gstvalue.c