From f1d3ae77530b30e2ebbef9bf9e1c8b3553251226 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 14 Oct 2011 14:39:21 +0000 Subject: [PATCH] cares_wrap: make destructor virtual A class with virtual methods should have a virtual destructor. --- src/cares_wrap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);