AVFoundation: Cleanup AVCaptureSession with proper reference counting
authorAndy Nichols <andy.nichols@digia.com>
Tue, 4 Mar 2014 13:11:01 +0000 (14:11 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 4 Mar 2014 16:53:39 +0000 (17:53 +0100)
commit1286300a4c847e7fb08410ee6052ba2dcc7b7de2
tree360fd82d9d71363a11421cc66de6d7d485582f26
parent9a55f5ce5746fa1df6daa62a7111cb2d5ff5138d
AVFoundation: Cleanup AVCaptureSession with proper reference counting

The reference counting was not being done for AVCaptureSession so it was
being destroyed before we got a chance to properly clean it up (which
lead to crashes).  We also make sure to remove any observers from
AVCaptureSession now before destroying it.

Task-number: QTBUG-37109
Task-number: QTBUG-29955
Change-Id: Ia9b49ad1eab01b4f7424e2a1c699d903cd9bf902
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
src/plugins/avfoundation/camera/avfcamerasession.mm