Merge "Prevent double-closing of native handle in HidlMemory" into sc-dev am: c53f7a2d41 am: c087064034
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14719253 Change-Id: Iea6e50ef349379c6870e1a0e975c1c998cd626a2
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