commit | ab94d71a948b9412f47241c6d2b1780e21f84677 | [log] [tgz] |
---|---|---|
author | Hridya Valsaraju <hridya@google.com> | Fri Mar 10 04:06:56 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Fri Mar 10 04:06:56 2017 +0000 |
tree | 5027d54336d8826c8072a54d150d0a404b887c1b | |
parent | 67091d1ebe4c824f2ca199f5b2a08508543d997f [diff] | |
parent | 651b2962222a0a0a83a5209aaedf1b3d225a0561 [diff] |
Merge "Allow MQDescriptors with null native_handles to be passed over hwbinder" am: 499f210f05 am: a301e8d0e8 am: 651b296222 Change-Id: Ic0c6a70bcff8168d66a978504607cd6b217d9103
diff --git a/base/HidlSupport.cpp b/base/HidlSupport.cpp index 547f7e7..bacb3d4 100644 --- a/base/HidlSupport.cpp +++ b/base/HidlSupport.cpp
@@ -151,6 +151,7 @@ } void hidl_handle::setTo(native_handle_t* handle, bool shouldOwn) { + freeHandle(); mHandle = handle; mOwnsHandle = shouldOwn; }