fixe memory leak

This commit is contained in:
orignal 2016-03-27 12:06:00 -04:00
parent 598d0e216a
commit 266744f640

View file

@ -162,7 +162,8 @@ namespace stream
void Stream::SavePacket (Packet * packet)
{
m_SavedPackets.insert (packet);
if (!m_SavedPackets.insert (packet).second)
delete packet;
}
void Stream::ProcessPacket (Packet * packet)