Merge "Prevent double-closing of native handle in HidlMemory" into sc-dev am: c53f7a2d41

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14719253

Change-Id: I66f98760647e639a9086b5ee78230a41b8838f93
This commit is contained in:
Ytai Ben-tsvi
2021-05-26 16:50:16 +00:00
committed by Automerger Merge Worker

View File

@@ -79,6 +79,7 @@ public class HidlMemory implements Closeable {
public void close() throws IOException {
if (mHandle != null) {
mHandle.close();
mHandle = null;
}
}