[vlc-commits] atmo: fix invalid delete

Rémi Denis-Courmont git at videolan.org
Thu Nov 6 22:14:13 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Nov  6 23:14:22 2014 +0200| [f938a451ae4802f7cbbf32a663c0018b851f155a] | committer: Rémi Denis-Courmont

atmo: fix invalid delete

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

 modules/video_filter/atmo/AtmoConfig.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_filter/atmo/AtmoConfig.cpp b/modules/video_filter/atmo/AtmoConfig.cpp
index 167dc80..5593362 100644
--- a/modules/video_filter/atmo/AtmoConfig.cpp
+++ b/modules/video_filter/atmo/AtmoConfig.cpp
@@ -63,7 +63,7 @@ CAtmoConfig::~CAtmoConfig() {
    {
      for(int zone=0; zone<m_AtmoZoneDefCount; zone++)
          delete m_ZoneDefinitions[zone];
-     delete m_ZoneDefinitions;
+     delete[] m_ZoneDefinitions;
      m_ZoneDefinitions = NULL;
    }
 
@@ -392,7 +392,7 @@ void CAtmoConfig::UpdateZoneDefinitionCount()
       {
         for(int zone=0; zone<m_AtmoZoneDefCount; zone++)
             delete m_ZoneDefinitions[zone];
-        delete m_ZoneDefinitions;
+        delete[] m_ZoneDefinitions;
         m_ZoneDefinitions = NULL;
       }
       m_AtmoZoneDefCount = getZoneCount();



More information about the vlc-commits mailing list