commit | 1fad64f440585a84f8d9fc5af318e60132a7746f | [log] [tgz] |
---|---|---|
author | Hridya Valsaraju <hridya@google.com> | Wed Mar 01 17:59:03 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Wed Mar 01 17:59:03 2017 +0000 |
tree | c32b6248941b0354418cf9991a55d7baad52407c | |
parent | 4367031f037aaae61d2a908a66ca827a4d778b73 [diff] | |
parent | 39ac871fbb7158e89b6082a2bb05831ac2fb0bf8 [diff] |
Add move constructor/assignment operator to hidl_memory am: 0126889103 am: eef47bd374 am: 39ac871fbb Change-Id: I414b9e9221a710b59f3868ba45e9cb002fab4cb9
diff --git a/base/HidlSupport.cpp b/base/HidlSupport.cpp index 37f40c4..c7328d4 100644 --- a/base/HidlSupport.cpp +++ b/base/HidlSupport.cpp
@@ -134,6 +134,7 @@ } void hidl_handle::setTo(native_handle_t* handle, bool shouldOwn) { + freeHandle(); mHandle = handle; mOwnsHandle = shouldOwn; }