Commit f1346345 authored by Ian McInerney's avatar Ian McInerney

Fixed memory delete issue

parent 96b45e01
......@@ -367,7 +367,7 @@ CCRTPPacket *CCrazyRadio::sendPacket(int nRadioChannel, CCRTPPacket *crtpSend, C
char *cSendable = crtpSend->sendableData();
crtpPacket = this->writeData(cSendable, crtpSend->sendableDataLength());
delete cSendable;
delete[] cSendable;
if (crtpPacket) {
if ( crtpPacket->dataLength() > 0 ) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment