This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/v4l-utils.git tree:
Subject: qv4l2: fix a segfault in a corner case. Author: Hans Verkuil <[email protected]> Date: Thu Aug 18 15:59:03 2011 +0200 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 <[email protected]> utils/qv4l2/qv4l2.cpp | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) --- http://git.linuxtv.org/v4l-utils.git?a=commitdiff;h=4df6c06eb4024498cb8e7b71ca2217e506b193e4 diff --git a/utils/qv4l2/qv4l2.cpp b/utils/qv4l2/qv4l2.cpp index 8be2938..1d90398 100644 --- a/utils/qv4l2/qv4l2.cpp +++ b/utils/qv4l2/qv4l2.cpp @@ -459,6 +459,7 @@ void ApplicationWindow::capStart(bool start) delete m_capNotifier; m_capNotifier = NULL; delete m_capImage; + m_capImage = NULL; return; } m_showFrames = m_showFramesAct->isChecked(); @@ -512,6 +513,7 @@ void ApplicationWindow::closeDevice() delete m_capNotifier; delete m_capImage; m_capNotifier = NULL; + m_capImage = NULL; } delete m_frameData; m_frameData = NULL; _______________________________________________ linuxtv-commits mailing list [email protected] http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits
