Unset QtCamdevice viewfinder when Viewfinder is being destructed.
authorMohammed Sameer <msameer@foolab.org>
Sun, 8 Sep 2013 18:57:30 +0000 (21:57 +0300)
committerMohammed Sameer <msameer@foolab.org>
Sun, 8 Sep 2013 18:57:30 +0000 (21:57 +0300)
commit937fe45637fd63dbd86a6d91ba3cd68c11cb7f28
tree95e9f131fa43b0f35fb187ba9a2030661a7a12e5
parentbf922c4aa3164bf3a50b904126b77a350dafdb71
Unset QtCamdevice viewfinder when Viewfinder is being destructed.

This fixes the following crash:
pure virtual method called
terminate called without an active exception
Aborted

Viewfinder was being destroyed and QtCamDevice was still holding a pointer
to garbage. It tries to stop viewfinder when the device gets stopped
which leads to the above mentioned crash.
declarative/viewfinder.cpp