commit | 40318d963db442ac5c2b125ec815180da65f2c2c | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Tue Feb 28 19:38:50 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Tue Feb 28 19:38:50 2017 +0000 |
tree | fdb7711e3fb851ef69e628944d558f82d688342d | |
parent | ced9de97500104697d86d191e657e840635bfbc1 [diff] | |
parent | a4234971208fd7ff1c8ebad18296e4cad0d5ba49 [diff] |
ITokenManager: don't delete token on get. am: 09456c2d16 am: f3d87509f8 am: a423497120 Change-Id: Ia4ad794d113df1a216225fad94a6084166ba89b2
diff --git a/base/HidlSupport.cpp b/base/HidlSupport.cpp index ec5b18f..0612050 100644 --- a/base/HidlSupport.cpp +++ b/base/HidlSupport.cpp
@@ -149,6 +149,7 @@ } void hidl_handle::setTo(native_handle_t* handle, bool shouldOwn) { + freeHandle(); mHandle = handle; mOwnsHandle = shouldOwn; }