Merge "libutils: give BasicHashtableImpl a virtual destructor"

This commit is contained in:
Alex Ray 2013-07-24 20:00:35 +00:00 committed by Android (Google) Code Review
commit a49a4a2e55
2 changed files with 5 additions and 0 deletions

View File

@ -52,6 +52,7 @@ protected:
BasicHashtableImpl(size_t entrySize, bool hasTrivialDestructor, BasicHashtableImpl(size_t entrySize, bool hasTrivialDestructor,
size_t minimumInitialCapacity, float loadFactor); size_t minimumInitialCapacity, float loadFactor);
BasicHashtableImpl(const BasicHashtableImpl& other); BasicHashtableImpl(const BasicHashtableImpl& other);
virtual ~BasicHashtableImpl();
void dispose(); void dispose();

View File

@ -42,6 +42,10 @@ BasicHashtableImpl::BasicHashtableImpl(const BasicHashtableImpl& other) :
} }
} }
BasicHashtableImpl::~BasicHashtableImpl()
{
}
void BasicHashtableImpl::dispose() { void BasicHashtableImpl::dispose() {
if (mBuckets) { if (mBuckets) {
releaseBuckets(mBuckets, mBucketCount); releaseBuckets(mBuckets, mBucketCount);