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

This commit is contained in:
Ytai Ben-tsvi
2021-05-26 16:41:14 +00:00
committed by Android (Google) Code Review

View File

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