mirror of https://github.com/nodejs/node.git
cares_wrap: make destructor virtual
A class with virtual methods should have a virtual destructor.pull/22966/head
parent
33b5f2f779
commit
f1d3ae7753
|
@ -149,7 +149,7 @@ class QueryWrap {
|
|||
object_ = Persistent<Object>::New(Object::New());
|
||||
}
|
||||
|
||||
~QueryWrap() {
|
||||
virtual ~QueryWrap() {
|
||||
assert(!object_.IsEmpty());
|
||||
|
||||
object_->Delete(oncomplete_sym);
|
||||
|
|
Loading…
Reference in New Issue