Browse Source

cares_wrap: make destructor virtual

A class with virtual methods should have a virtual destructor.
v0.7.4-release
Ben Noordhuis 13 years ago
parent
commit
f1d3ae7753
  1. 2
      src/cares_wrap.cc

2
src/cares_wrap.cc

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

Loading…
Cancel
Save