From 0d8f3d6c452883ab7295573c4ff7437d68d1d936 Mon Sep 17 00:00:00 2001 From: Alex Ray Date: Wed, 17 Jul 2013 16:57:21 -0700 Subject: libutils: give BasicHashtableImpl a virtual destructor Change-Id: I4ec590b060d732af5fe525670becbe778684247b --- include/utils/BasicHashtable.h | 1 + libs/utils/BasicHashtable.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/include/utils/BasicHashtable.h b/include/utils/BasicHashtable.h index 7a6c96c..c235d62 100644 --- a/include/utils/BasicHashtable.h +++ b/include/utils/BasicHashtable.h @@ -52,6 +52,7 @@ protected: BasicHashtableImpl(size_t entrySize, bool hasTrivialDestructor, size_t minimumInitialCapacity, float loadFactor); BasicHashtableImpl(const BasicHashtableImpl& other); + virtual ~BasicHashtableImpl(); void dispose(); diff --git a/libs/utils/BasicHashtable.cpp b/libs/utils/BasicHashtable.cpp index fd51b7b..491d9e9 100644 --- a/libs/utils/BasicHashtable.cpp +++ b/libs/utils/BasicHashtable.cpp @@ -42,6 +42,10 @@ BasicHashtableImpl::BasicHashtableImpl(const BasicHashtableImpl& other) : } } +BasicHashtableImpl::~BasicHashtableImpl() +{ +} + void BasicHashtableImpl::dispose() { if (mBuckets) { releaseBuckets(mBuckets, mBucketCount); -- cgit v1.1