Browse Source

crypto: dispose persistent properties on class destruction

v0.7.4-release
Fedor Indutny 14 years ago
committed by Ben Noordhuis
parent
commit
759fb36df3
  1. 5
      src/node_crypto.h

5
src/node_crypto.h

@ -157,6 +157,11 @@ class Connection : ObjectWrap {
SSL_free(ssl_);
ssl_ = NULL;
}
#ifdef OPENSSL_NPN_NEGOTIATED
if (!npnProtos_.IsEmpty()) npnProtos_.Dispose();
if (!selectedNPNProto_.IsEmpty()) selectedNPNProto_.Dispose();
#endif
}
private:

Loading…
Cancel
Save