fixed memory leak

This commit is contained in:
orignal 2015-02-04 21:24:48 -05:00
parent 778d1afda0
commit 9639ab7f1e
2 changed files with 7 additions and 0 deletions

View file

@ -10,6 +10,12 @@ namespace i2p
{
namespace tunnel
{
TunnelGatewayBuffer::~TunnelGatewayBuffer ()
{
for (auto it: m_TunnelDataMsgs)
DeleteI2NPMessage (it);
}
void TunnelGatewayBuffer::PutI2NPMsg (const TunnelMessageBlock& block)
{
bool messageCreated = false;