cares_wrap: make destructor virtual

A class with virtual methods should have a virtual destructor.
pull/22966/head
Ben Noordhuis 2011-10-14 14:39:21 +00:00
parent 33b5f2f779
commit f1d3ae7753
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ class QueryWrap {
object_ = Persistent<Object>::New(Object::New());
}
~QueryWrap() {
virtual ~QueryWrap() {
assert(!object_.IsEmpty());
object_->Delete(oncomplete_sym);