Loading media/java/android/media/ImageReader.java +4 −4 Original line number Original line Diff line number Diff line Loading @@ -512,13 +512,13 @@ public class ImageReader implements AutoCloseable { mAcquiredImages.clear(); mAcquiredImages.clear(); nativeClose(); nativeClose(); } if (mEstimatedNativeAllocBytes > 0) { if (mEstimatedNativeAllocBytes > 0) { VMRuntime.getRuntime().registerNativeFree(mEstimatedNativeAllocBytes); VMRuntime.getRuntime().registerNativeFree(mEstimatedNativeAllocBytes); mEstimatedNativeAllocBytes = 0; mEstimatedNativeAllocBytes = 0; } } } } } @Override @Override protected void finalize() throws Throwable { protected void finalize() throws Throwable { Loading Loading
media/java/android/media/ImageReader.java +4 −4 Original line number Original line Diff line number Diff line Loading @@ -512,13 +512,13 @@ public class ImageReader implements AutoCloseable { mAcquiredImages.clear(); mAcquiredImages.clear(); nativeClose(); nativeClose(); } if (mEstimatedNativeAllocBytes > 0) { if (mEstimatedNativeAllocBytes > 0) { VMRuntime.getRuntime().registerNativeFree(mEstimatedNativeAllocBytes); VMRuntime.getRuntime().registerNativeFree(mEstimatedNativeAllocBytes); mEstimatedNativeAllocBytes = 0; mEstimatedNativeAllocBytes = 0; } } } } } @Override @Override protected void finalize() throws Throwable { protected void finalize() throws Throwable { Loading