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

Commit 8b29ace3 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

Change-Id: I9954f6b7b7ab997391acbe3f16cbce36d9c5de3c
parents d7fa2e99 2f8bf1f0
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 {