commit | f2250c735b245b58a1513037bcb34bfbbdb1d81a | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Wed Mar 15 01:44:16 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Wed Mar 15 01:44:16 2017 +0000 |
tree | e48dffbcd49998c5729f588fe6bcff255f43496e | |
parent | 1428e659e3f1340d4ba83ea7cb2e6d7913138452 [diff] | |
parent | adec8147f15a3a69a0bb6260c3fa422ac0c96ac9 [diff] |
Merge "getTransport checks both manifests." am: 1957f7a07f am: d05118a3c0 am: adec8147f1 Change-Id: I210c43e8778e807c91fcbdee446157af4cc40834
diff --git a/base/HidlSupport.cpp b/base/HidlSupport.cpp index e97797d..91c9717 100644 --- a/base/HidlSupport.cpp +++ b/base/HidlSupport.cpp
@@ -147,6 +147,7 @@ } void hidl_handle::setTo(native_handle_t* handle, bool shouldOwn) { + freeHandle(); mHandle = handle; mOwnsHandle = shouldOwn; }