diff --git a/include/binder/MemoryDealer.h b/include/binder/MemoryDealer.h index 6628f751b61dc..03ac70a6b325f 100644 --- a/include/binder/MemoryDealer.h +++ b/include/binder/MemoryDealer.h @@ -218,8 +218,6 @@ public: const sp& heap, const sp& allocator); - virtual ~MemoryDealer(); - virtual sp allocate(size_t size, uint32_t flags = 0); virtual void deallocate(size_t offset); virtual void dump(const char* what, uint32_t flags = 0) const; @@ -228,6 +226,9 @@ public: sp getMemoryHeap() const { return heap(); } sp getAllocator() const { return allocator(); } +protected: + virtual ~MemoryDealer(); + private: const sp& heap() const; const sp& allocator() const;