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

Rémi Duraffort git at videolan.org
Sun Dec 15 22:03:31 CET 2013


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Dec 15 18:38:01 2013 +0100| [ef1de5222a4a280ba790624b661000ebd99906be] | committer: Rémi Duraffort

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ef1de5222a4a280ba790624b661000ebd99906be
---

 modules/video_filter/atmo/AtmoLiveView.cpp |    4 ++--
 modules/video_filter/atmo/AtmoTools.cpp    |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/video_filter/atmo/AtmoLiveView.cpp b/modules/video_filter/atmo/AtmoLiveView.cpp
index 2f8d016..987bb61 100644
--- a/modules/video_filter/atmo/AtmoLiveView.cpp
+++ b/modules/video_filter/atmo/AtmoLiveView.cpp
@@ -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;
diff --git a/modules/video_filter/atmo/AtmoTools.cpp b/modules/video_filter/atmo/AtmoTools.cpp
index 6775351..0988539 100644
--- a/modules/video_filter/atmo/AtmoTools.cpp
+++ b/modules/video_filter/atmo/AtmoTools.cpp
@@ -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;
              }



More information about the vlc-commits mailing list