Browse Source

libi2pd: make Tunnel and TunnelConfig destructors virtual

pull/1703/head
Simon Vetter 3 years ago
parent
commit
7073a6bf38
  1. 2
      libi2pd/Tunnel.h
  2. 2
      libi2pd/TunnelConfig.h

2
libi2pd/Tunnel.h

@ -68,7 +68,7 @@ namespace tunnel
public: public:
Tunnel (std::shared_ptr<const TunnelConfig> config); Tunnel (std::shared_ptr<const TunnelConfig> config);
~Tunnel (); virtual ~Tunnel ();
void Build (uint32_t replyMsgID, std::shared_ptr<OutboundTunnel> outboundTunnel = nullptr); void Build (uint32_t replyMsgID, std::shared_ptr<OutboundTunnel> outboundTunnel = nullptr);

2
libi2pd/TunnelConfig.h

@ -99,7 +99,7 @@ namespace tunnel
m_LastHop->SetReplyHop (replyTunnelID, replyIdent); m_LastHop->SetReplyHop (replyTunnelID, replyIdent);
} }
~TunnelConfig () virtual ~TunnelConfig ()
{ {
TunnelHopConfig * hop = m_FirstHop; TunnelHopConfig * hop = m_FirstHop;

Loading…
Cancel
Save