Fix m_store delete to use delete[]
This commit is contained in:
parent
754607fa2d
commit
6aab7bf2f2
2
deps/ox/src/ox/fs/filesystem.hpp
vendored
2
deps/ox/src/ox/fs/filesystem.hpp
vendored
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user