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