Make ~WeakMapBase virtual to silence MSVC. It's a destructor, probably called in concert with a delete or free(), so perf shouldn't matter, right? r=mozbot

This commit is contained in:
Jeff Walden 2011-10-05 15:53:50 -07:00
Родитель d3ca4641ea
Коммит 14cb9c97c4
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -137,6 +137,7 @@ template <class Key, class Value> class DefaultMarkPolicy;
class WeakMapBase {
public:
WeakMapBase() : next(NULL) { }
virtual ~WeakMapBase() { }
void trace(JSTracer *tracer) {
if (IS_GC_MARKING_TRACER(tracer)) {