diff --git a/cameraview/src/main/utils/com/otaliastudios/cameraview/CropHelper.java b/cameraview/src/main/utils/com/otaliastudios/cameraview/CropHelper.java index 2808e39c..7273922e 100644 --- a/cameraview/src/main/utils/com/otaliastudios/cameraview/CropHelper.java +++ b/cameraview/src/main/utils/com/otaliastudios/cameraview/CropHelper.java @@ -27,6 +27,7 @@ class CropHelper { image.recycle(); ByteArrayOutputStream out = new ByteArrayOutputStream(); crop.compress(Bitmap.CompressFormat.JPEG, jpegCompression, out); + crop.recycle(); return out.toByteArray(); }