fixed crash

This commit is contained in:
orignal 2014-01-24 21:14:14 -05:00
parent bd8ea0bac0
commit ef7e81baae
2 changed files with 3 additions and 3 deletions

View file

@ -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);
}
}