mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-22 00:59:08 +01:00
fixed crash
This commit is contained in:
parent
bd8ea0bac0
commit
ef7e81baae
2 changed files with 3 additions and 3 deletions
|
@ -236,8 +236,8 @@ namespace garlic
|
||||||
auto it = m_Sessions.find (destination->GetIdentHash ());
|
auto it = m_Sessions.find (destination->GetIdentHash ());
|
||||||
if (it != m_Sessions.end ())
|
if (it != m_Sessions.end ())
|
||||||
{
|
{
|
||||||
m_Sessions.erase (it);
|
|
||||||
delete it->second;
|
delete it->second;
|
||||||
|
m_Sessions.erase (it);
|
||||||
}
|
}
|
||||||
GarlicRoutingSession * session = new GarlicRoutingSession (destination, 0); // not follow-on messages expected
|
GarlicRoutingSession * session = new GarlicRoutingSession (destination, 0); // not follow-on messages expected
|
||||||
m_Sessions[destination->GetIdentHash ()] = session;
|
m_Sessions[destination->GetIdentHash ()] = session;
|
||||||
|
|
|
@ -412,8 +412,8 @@ namespace data
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// no more requests for detination possible. delete it
|
// no more requests for detination possible. delete it
|
||||||
m_RequestedDestinations.erase (it);
|
|
||||||
delete it->second;
|
delete it->second;
|
||||||
|
m_RequestedDestinations.erase (it);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -474,8 +474,8 @@ namespace data
|
||||||
auto it = m_RequestedDestinations.find (dest);
|
auto it = m_RequestedDestinations.find (dest);
|
||||||
if (it != m_RequestedDestinations.end ())
|
if (it != m_RequestedDestinations.end ())
|
||||||
{
|
{
|
||||||
m_RequestedDestinations.erase (it);
|
|
||||||
delete it->second;
|
delete it->second;
|
||||||
|
m_RequestedDestinations.erase (it);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue