From f47c88019884e9bfa623ffcada509d7f8b98e50d Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Tue, 22 Apr 2014 19:28:49 -0400 Subject: [PATCH] Make sure to use the proper delete --- IO/src/ImageFile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IO/src/ImageFile.cpp b/IO/src/ImageFile.cpp index a8619fd..36298c1 100644 --- a/IO/src/ImageFile.cpp +++ b/IO/src/ImageFile.cpp @@ -131,7 +131,7 @@ ImageFile::~ImageFile() { } if(m_FileData) { - delete m_FileData; + delete [] m_FileData; m_FileData = NULL; } } @@ -144,7 +144,7 @@ bool ImageFile::Load() { } if(m_FileData) { - delete m_FileData; + delete [] m_FileData; m_FileData = NULL; }