for(i = height*(width/1201+1);i > 0;i--)
{
QByteArray datagram;
datagram.resize(width+11);
for(j = width+12;j >= 0;j--)
{
datagram[j] = sendbuffer[i][j];
}
sender->writeDatagram(datagram.data(),datagram.size(),QHostAddress::Broadcast,1234);
delete[]senderbuffer[i];
}
delete[]senderbuffer;
請問我這樣釋放內存為何不行?
delete sendbuffer[i] 不就行了~