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: I931e2ef20cfc2a011cb4f885107e9108ef761fb1
This commit is contained in:
@@ -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