commit | b54e30bdf0979e26720099671bc61c5025375738 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Fri Feb 17 14:10:17 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Fri Feb 17 14:10:17 2017 +0000 |
tree | b2b1b32e0f737a84f89342ced78d46c0c2b8d178 | |
parent | b2c5b69d1d12f0c1b7381ebaa6d57adea5ee8e12 [diff] | |
parent | 072984bb72b181c5bbfc57d776a4bd49abbe43b5 [diff] |
hidl_string: allow null cstr am: a21d84f11f am: 55107b3754 am: f78b5afd0a am: 072984bb72 Change-Id: I6fc221a0c03665370434caad683613a9223f8d6d
diff --git a/base/HidlSupport.cpp b/base/HidlSupport.cpp index 68155cd..b359f1d 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; }