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

This commit is contained in:
SBiOSoftWhare
2020-04-21 16:58:24 +02:00
parent 593b9ae461
commit a299260265

View File

@@ -58,7 +58,8 @@ final class QRCodeReaderViewController: UIViewController {
}
deinit {
self.stopScanning()
self.zxCapture.layer.removeFromSuperlayer()
self.zxCapture.hard_stop()
}
// MARK: - Life cycle