mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
fixed crash
This commit is contained in:
@@ -412,8 +412,8 @@ namespace data
|
||||
else
|
||||
{
|
||||
// no more requests for detination possible. delete it
|
||||
m_RequestedDestinations.erase (it);
|
||||
delete it->second;
|
||||
m_RequestedDestinations.erase (it);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -474,8 +474,8 @@ namespace data
|
||||
auto it = m_RequestedDestinations.find (dest);
|
||||
if (it != m_RequestedDestinations.end ())
|
||||
{
|
||||
m_RequestedDestinations.erase (it);
|
||||
delete it->second;
|
||||
m_RequestedDestinations.erase (it);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user