Got rid of a memory leak on each received packet.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2349 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
2ff7e45ccb
commit
14830eb0ba
|
@ -912,7 +912,7 @@ bool WpInterface::receiveAttempt()
|
|||
}
|
||||
#endif
|
||||
|
||||
DataBlock data(buf+WP_HEADER,r);
|
||||
DataBlock data(buf+WP_HEADER,r,false);
|
||||
receivedPacket(data);
|
||||
data.clear(false);
|
||||
}
|
||||
|
|
|
@ -632,7 +632,7 @@ bool WpInterface::receiveAttempt()
|
|||
}
|
||||
#endif
|
||||
|
||||
DataBlock data(buffer.data,r);
|
||||
DataBlock data(buffer.data,r,false);
|
||||
receivedPacket(data);
|
||||
data.clear(false);
|
||||
}
|
||||
|
|
|
@ -1633,7 +1633,7 @@ bool ZapInterface::process()
|
|||
s_ifaceNotifyMutex.lock();
|
||||
m_notify = 0;
|
||||
s_ifaceNotifyMutex.unlock();
|
||||
DataBlock packet(m_buffer,r - ZAP_CRC_LEN);
|
||||
DataBlock packet(m_buffer,r - ZAP_CRC_LEN,false);
|
||||
#ifdef XDEBUG
|
||||
String hex;
|
||||
hex.hexify(packet.data(),packet.length(),' ');
|
||||
|
|
Loading…
Reference in New Issue