Make sure to use the proper delete

This commit is contained in:
Pavel Krajcevski 2014-04-22 19:28:49 -04:00
parent c40829a3b7
commit f47c880198

View file

@ -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;
}