fix: Fix out-of-memory crash in QR code scanner by closing Image (#2267)
cover onCompleted listener for codescanner
This commit is contained in:
parent
52f78a119b
commit
9600a38398
@ -64,6 +64,10 @@ class CodeScannerPipeline(
|
||||
isBusy = false
|
||||
callback.onError(error)
|
||||
}
|
||||
.addOnCompleteListener {
|
||||
image.close()
|
||||
isBusy = false
|
||||
}
|
||||
}, CameraQueues.videoQueue.handler)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user