src: mark SSLWrap destructor as virtual
authorBen Noordhuis <info@bnoordhuis.nl>
Thu, 23 Oct 2014 20:32:41 +0000 (22:32 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Thu, 23 Oct 2014 20:50:00 +0000 (22:50 +0200)
Like the previous commit but this time for the SSLWrap destructor.

src/node_crypto.h

index 3c78ed6..4d2b9ce 100644 (file)
@@ -164,7 +164,7 @@ class SSLWrap {
     CHECK_NE(ssl_, nullptr);
   }
 
-  ~SSLWrap() {
+  virtual ~SSLWrap() {
     if (ssl_ != nullptr) {
       SSL_free(ssl_);
       ssl_ = nullptr;