crypto: dispose persistent properties on class destruction

pull/22966/head
Fedor Indutny 2011-07-28 20:02:04 +07:00 committed by Ben Noordhuis
parent 799c7bdcb6
commit 759fb36df3
1 changed files with 5 additions and 0 deletions

View File

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