Merge "Prevent double-closing of native handle in HidlMemory" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c53f7a2d41
@@ -79,6 +79,7 @@ public class HidlMemory implements Closeable {
|
||||
public void close() throws IOException {
|
||||
if (mHandle != null) {
|
||||
mHandle.close();
|
||||
mHandle = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user