diff --git a/package/android/src/main/java/com/mrousavy/camera/core/CodeScannerPipeline.kt b/package/android/src/main/java/com/mrousavy/camera/core/CodeScannerPipeline.kt index 0bab7a9..78fbbb1 100644 --- a/package/android/src/main/java/com/mrousavy/camera/core/CodeScannerPipeline.kt +++ b/package/android/src/main/java/com/mrousavy/camera/core/CodeScannerPipeline.kt @@ -64,6 +64,10 @@ class CodeScannerPipeline( isBusy = false callback.onError(error) } + .addOnCompleteListener { + image.close() + isBusy = false + } }, CameraQueues.videoQueue.handler) }