Set ptr to NULL, so this method can be called repeatedly. This fixes a crash after...
authorKarl-Heinz Zimmer <khz@kde.org>
Wed, 3 Apr 2013 15:54:29 +0000 (17:54 +0200)
committerKarl-Heinz Zimmer <khz@kde.org>
Wed, 3 Apr 2013 15:54:29 +0000 (17:54 +0200)
commit2122627877bd8e834ec283c6114c853105a4a502
treec688c88fffd62cb0ff6bef3ba7a3c682367073d5
parenta2d89aced47399f2d9aaeb1fa221bcf6d1bb35c7
Set ptr to NULL, so this method can be called repeatedly. This fixes a crash after unplugging web cam and trying to re-scan the cameras.
modules/highgui/src/cap_libv4l.cpp