Browse Source

fixe memory leak

pull/450/head
orignal 9 years ago
parent
commit
266744f640
  1. 3
      Streaming.cpp

3
Streaming.cpp

@ -162,7 +162,8 @@ namespace stream @@ -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)

Loading…
Cancel
Save