subparse: use g_clear_error instead of g_error_free
authorEunhae Choi <eunhae1.choi@samsung.com>
Wed, 19 Aug 2015 12:19:05 +0000 (21:19 +0900)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 19 Aug 2015 13:21:25 +0000 (16:21 +0300)
commitb1f78b5d23db1700eaabfc647806ba1ace9f00b3
treeca2023aac44c37e72bfdade324f8c2fcd9f3c100
parentdc744b05b0a6c54abcee89248af2ec2b17a191d7
subparse: use g_clear_error instead of g_error_free

To avoid invalid pointer accees the err pointer should be set to NULL.
By using g_clear_error() it calls free and clear the pointer.

https://bugzilla.gnome.org/show_bug.cgi?id=753817
gst/subparse/gstsubparse.c