diff --git a/src/cares_wrap.cc b/src/cares_wrap.cc index efa83c02d6b..6a6810cff5b 100644 --- a/src/cares_wrap.cc +++ b/src/cares_wrap.cc @@ -149,7 +149,7 @@ class QueryWrap { object_ = Persistent::New(Object::New()); } - ~QueryWrap() { + virtual ~QueryWrap() { assert(!object_.IsEmpty()); object_->Delete(oncomplete_sym);