Commit ef1de522 authored by Rémi Duraffort's avatar Rémi Duraffort

amto: fix dealocator (delete [] instead of free)

parent 658c51b6
......@@ -121,7 +121,7 @@ DWORD CAtmoLiveView::Execute(void)
if(PreviousPacket && (PreviousPacket->numColors == ColorPacket->numColors))
CopyColorPacket(ColorPacket, PreviousPacket)
else {
delete (char *)PreviousPacket;
delete [] PreviousPacket;
DupColorPacket(PreviousPacket, ColorPacket )
}
} else {
......@@ -196,7 +196,7 @@ DWORD CAtmoLiveView::Execute(void)
pPacketQueue->ShowQueueStatus( m_pLog );
#endif
delete (char *)PreviousPacket;
delete [] PreviousPacket;
delete filter;
return 0;
......
......@@ -66,7 +66,7 @@ void CAtmoTools::ShowShutdownColor(CAtmoDynData *pDynData)
atmoConnection->SendData(packet);
delete (char *)packet;
delete [] packet;
}
......@@ -150,7 +150,7 @@ EffectMode CAtmoTools::SwitchEffect(CAtmoDynData *pDynData, EffectMode newEffect
atmoConnection->SendData( packet );
delete (char *)packet;
delete [] packet;
break;
}
......
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