commit | 20eb9dd1c220ceb5763dc5322c69921a2671cb37 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Tue Feb 28 19:38:58 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Tue Feb 28 19:38:58 2017 +0000 |
tree | 97ae917203d7df632dec86b70583d2eea45d78d5 | |
parent | 40318d963db442ac5c2b125ec815180da65f2c2c [diff] | |
parent | b41903097556d7f6dfa517c817cc544ab300772d [diff] |
Merge "Make operator= and constructor behavior consistent." am: ecfdacd86c am: 7e7e4a3860 am: b419030975 Change-Id: I7944ded56032b4e65aabb407349a54fe1450fdc1
diff --git a/base/HidlSupport.cpp b/base/HidlSupport.cpp index 6f04838..7add055 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; }