glimagesink: use g_clear_error instead of g_error_free
authorVineeth TM <vineeth.tm@samsung.com>
Thu, 2 Jul 2015 08:08:26 +0000 (17:08 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:05 +0000 (19:32 +0000)
commit5229b501252d0e7bf82cb305a1be058fba353fd9
tree8a09c2088a757ad15f19a0444cb2e61d23a888a4
parent237af0d21c71ebc363c2b4e362117f6a8052a4c0
glimagesink: use g_clear_error instead of g_error_free

replace g_error_free with g_clear_error, as it internally
checks if error variable is valid or not.

https://bugzilla.gnome.org/show_bug.cgi?id=751823
ext/gl/gstglimagesink.c