fix: Fix out-of-memory crash in QR code scanner by closing Image (#2267)

cover onCompleted listener for codescanner
This commit is contained in:
Rodrigo Gomes 2023-12-12 07:18:55 -03:00 committed by GitHub
parent 52f78a119b
commit 9600a38398
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,6 +64,10 @@ class CodeScannerPipeline(
isBusy = false
callback.onError(error)
}
.addOnCompleteListener {
image.close()
isBusy = false
}
}, CameraQueues.videoQueue.handler)
}