Fix ~HidlMemory
am: 280af0a664
Change-Id: I4b88cd7c0682cd9e1f84ee5a60636c7b2610d7d2
diff --git a/base/include/hidl/HidlSupport.h b/base/include/hidl/HidlSupport.h
index 2be97c2..e60f2f3 100644
--- a/base/include/hidl/HidlSupport.h
+++ b/base/include/hidl/HidlSupport.h
@@ -303,11 +303,11 @@
// destructor
static sp<HidlMemory> getInstance(const hidl_string& name, int fd, uint64_t size);
+ virtual ~HidlMemory();
protected:
HidlMemory() : hidl_memory() {}
HidlMemory(const hidl_string& name, hidl_handle&& handle, size_t size)
: hidl_memory(name, std::move(handle), size) {}
- ~HidlMemory();
HidlMemory& operator=(hidl_memory&& src) {
hidl_memory::operator=(src);
return *this;