Browse Source

delete packet if not saved

pull/451/head
Jeff Becker 9 years ago
parent
commit
5c9970c786
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
  1. 4
      Streaming.cpp

4
Streaming.cpp

@ -162,7 +162,9 @@ namespace stream @@ -162,7 +162,9 @@ namespace stream
void Stream::SavePacket (Packet * packet)
{
m_SavedPackets.insert (packet);
auto ins = m_SavedPackets.insert (packet);
// delete packed if not saved
if (!ins.second) delete packet;
}
void Stream::ProcessPacket (Packet * packet)

Loading…
Cancel
Save