mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
added pointer check in RoutingDestination destructor
This commit is contained in:
parent
b3ee41bd91
commit
61001ef047
@ -106,7 +106,7 @@ namespace data
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
RoutingDestination (): m_ElGamalEncryption (nullptr) {};
|
RoutingDestination (): m_ElGamalEncryption (nullptr) {};
|
||||||
virtual ~RoutingDestination () { delete m_ElGamalEncryption; };
|
virtual ~RoutingDestination () { if (m_ElGamalEncryption) delete m_ElGamalEncryption; };
|
||||||
|
|
||||||
virtual const IdentHash& GetIdentHash () const = 0;
|
virtual const IdentHash& GetIdentHash () const = 0;
|
||||||
virtual const uint8_t * GetEncryptionPublicKey () const = 0;
|
virtual const uint8_t * GetEncryptionPublicKey () const = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user