commit | b2c5b69d1d12f0c1b7381ebaa6d57adea5ee8e12 | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Fri Feb 17 11:58:08 2017 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Fri Feb 17 11:58:08 2017 +0000 |
tree | 5600167a15bb1a511d349fab2bc2d31b69592521 | |
parent | 0e3ea8cd1556c5907938c6e50b0323dff1cb0077 [diff] | |
parent | ca37c0effc558ffe93a3c66f0b6b2480ec7410d4 [diff] |
Merge "Add missing freeHandle to setTo"
diff --git a/base/HidlSupport.cpp b/base/HidlSupport.cpp index 1544969..dd93534 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; }