@@ -71,7 +71,7 @@ class Connection;
7171
7272class SecureContext : public BaseObject {
7373 public:
74- ~SecureContext () {
74+ ~SecureContext () override {
7575 FreeCTXMem ();
7676 }
7777
@@ -271,7 +271,7 @@ class SSLWrap {
271271// assumes that any args.This() called will be the handle from Connection.
272272class Connection : public SSLWrap <Connection>, public AsyncWrap {
273273 public:
274- ~Connection () {
274+ ~Connection () override {
275275#ifdef SSL_CTRL_SET_TLSEXT_SERVERNAME_CB
276276 sniObject_.Reset ();
277277 sniContext_.Reset ();
@@ -361,7 +361,7 @@ class Connection : public SSLWrap<Connection>, public AsyncWrap {
361361
362362class CipherBase : public BaseObject {
363363 public:
364- ~CipherBase () {
364+ ~CipherBase () override {
365365 if (!initialised_)
366366 return ;
367367 delete[] auth_tag_;
@@ -425,7 +425,7 @@ class CipherBase : public BaseObject {
425425
426426class Hmac : public BaseObject {
427427 public:
428- ~Hmac () {
428+ ~Hmac () override {
429429 if (!initialised_)
430430 return ;
431431 HMAC_CTX_cleanup (&ctx_);
@@ -458,7 +458,7 @@ class Hmac : public BaseObject {
458458
459459class Hash : public BaseObject {
460460 public:
461- ~Hash () {
461+ ~Hash () override {
462462 if (!initialised_)
463463 return ;
464464 EVP_MD_CTX_cleanup (&mdctx_);
@@ -505,7 +505,7 @@ class SignBase : public BaseObject {
505505 initialised_(false ) {
506506 }
507507
508- ~SignBase () {
508+ ~SignBase () override {
509509 if (!initialised_)
510510 return ;
511511 EVP_MD_CTX_cleanup (&mdctx_);
@@ -598,7 +598,7 @@ class PublicKeyCipher {
598598
599599class DiffieHellman : public BaseObject {
600600 public:
601- ~DiffieHellman () {
601+ ~DiffieHellman () override {
602602 if (dh != nullptr ) {
603603 DH_free (dh);
604604 }
@@ -644,7 +644,7 @@ class DiffieHellman : public BaseObject {
644644
645645class ECDH : public BaseObject {
646646 public:
647- ~ECDH () {
647+ ~ECDH () override {
648648 if (key_ != nullptr )
649649 EC_KEY_free (key_);
650650 key_ = nullptr ;
0 commit comments