From 194bc4ff7bf90af14771a3a7074c197a871e0127 Mon Sep 17 00:00:00 2001 From: Alex Ray Date: Wed, 17 Jul 2013 16:57:21 -0700 Subject: [PATCH] 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 7a6c96cef..c235d6252 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 fd51b7b2e..491d9e98b 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);