v4l2: fix potential double-free of error debug string
authorTim-Philipp Müller <tim@centricular.com>
Fri, 1 Jul 2016 10:54:57 +0000 (11:54 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 1 Jul 2016 10:54:57 +0000 (11:54 +0100)
commit2d6c93efe5b73a49ad3ae6fbc25615b071f18440
treeb5957bc1bd7903e8e39ae2cce91cde49db0f42b1
parent6d3071f20070dd5ca5338908d3fa0b4c41be0e86
v4l2: fix potential double-free of error debug string

gst_v4l2_clear_error() doesn't work like g_clear_error(), it
doesn't NULLify the pointer, so set freed debug string to NULL
so it doesn't get freed again if gst_v4l2_clear_error() is
called twice on the error.

CID 1362901
sys/v4l2/v4l2-utils.c