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:
@@ -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