Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01d65beb authored by Chien-Yu Chen's avatar Chien-Yu Chen Committed by android-build-merger
Browse files

Merge \\"ImageReader: Make close thread safe\\" into nyc-mr1-dev am: 2f8bf1f0

am: 8b29ace3

Change-Id: I94b195e2a7f43ed010ca3cebe933593c6960cfc6
parents 61834a60 8b29ace3
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -512,13 +512,13 @@ public class ImageReader implements AutoCloseable {
            mAcquiredImages.clear();

            nativeClose();
        }

            if (mEstimatedNativeAllocBytes > 0) {
                VMRuntime.getRuntime().registerNativeFree(mEstimatedNativeAllocBytes);
                mEstimatedNativeAllocBytes = 0;
            }
        }
    }

    @Override
    protected void finalize() throws Throwable {