Skip to content
Browse files

cares_wrap: make destructor virtual

A class with virtual methods should have a virtual destructor.
  • Loading branch information...
1 parent 33b5f2f commit f1d3ae77530b30e2ebbef9bf9e1c8b3553251226 @bnoordhuis bnoordhuis committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/cares_wrap.cc
View
2 src/cares_wrap.cc
@@ -149,7 +149,7 @@ class QueryWrap {
object_ = Persistent<Object>::New(Object::New());
}
- ~QueryWrap() {
+ virtual ~QueryWrap() {
assert(!object_.IsEmpty());
object_->Delete(oncomplete_sym);

0 comments on commit f1d3ae7

Please sign in to comment.
Something went wrong with that request. Please try again.