crypto: dispose persistent properties on class destruction
This commit is contained in:
parent
799c7bdcb6
commit
759fb36df3
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user