QRCodeReaderViewController: Fix a crash after deinit (Fix #3125).

This commit is contained in:
SBiOSoftWhare
2020-04-21 16:58:24 +02:00
parent 176eca0823
commit 5e43a6550c
@@ -58,7 +58,8 @@ final class QRCodeReaderViewController: UIViewController {
}
deinit {
self.stopScanning()
self.zxCapture.layer.removeFromSuperlayer()
self.zxCapture.hard_stop()
}
// MARK: - Life cycle