qv4l2: fix a segfault in a corner case.
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 18 Aug 2011 13:59:03 +0000 (15:59 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Thu, 18 Aug 2011 13:59:03 +0000 (15:59 +0200)
commit4df6c06eb4024498cb8e7b71ca2217e506b193e4
tree96727964f84a343c133a0bddbe7e36cf040db414
parent483064be83729c9143617859ddd3d0aa710b72e6
qv4l2: fix a segfault in a corner case.

With the new 'Show frames' feature the m_capImage pointer must now be set to
NULL after delete. It used to be that it was always 'new'ed again, but that's
no longer true.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
utils/qv4l2/qv4l2.cpp