Fix m_store delete to use delete[]

This commit is contained in:
Gary Talent 2017-05-20 03:57:17 -05:00
parent 754607fa2d
commit 6aab7bf2f2

View File

@ -348,7 +348,7 @@ FileSystemTemplate<FileStore, FS_TYPE>::FileSystemTemplate(uint8_t *buff, bool o
template<typename FileStore, FsType FS_TYPE> template<typename FileStore, FsType FS_TYPE>
FileSystemTemplate<FileStore, FS_TYPE>::~FileSystemTemplate() { FileSystemTemplate<FileStore, FS_TYPE>::~FileSystemTemplate() {
if (m_ownsBuff) { if (m_ownsBuff) {
delete (uint8_t*) m_store; delete[] (uint8_t*) m_store;
} }
} }