diff options
| author | 2021-05-26 16:41:14 +0000 | |
|---|---|---|
| committer | 2021-05-26 16:41:14 +0000 | |
| commit | c53f7a2d411b0f03420c675c1cd6ce1692fb3af3 (patch) | |
| tree | 92e0d12d480754697870dc5610d27ca50c593185 | |
| parent | a5706d2900dbc7a7a5aea4dfb95901ef5899d900 (diff) | |
| parent | 808e525d57310e1332cbf53c88c16b6359ebee7a (diff) | |
Merge "Prevent double-closing of native handle in HidlMemory" into sc-dev
| -rw-r--r-- | core/java/android/os/HidlMemory.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/os/HidlMemory.java b/core/java/android/os/HidlMemory.java index 26fc6f0ae4ce..2539a6b2a0eb 100644 --- a/core/java/android/os/HidlMemory.java +++ b/core/java/android/os/HidlMemory.java @@ -79,6 +79,7 @@ public class HidlMemory implements Closeable { public void close() throws IOException { if (mHandle != null) { mHandle.close(); + mHandle = null; } } |