[ox] Replace delete invocations with safeDelete
This commit is contained in:
@@ -95,7 +95,7 @@ FileAddress &FileAddress::operator=(FileAddress &&other) noexcept {
|
||||
|
||||
void FileAddress::cleanup() noexcept {
|
||||
if (m_type == FileAddressType::Path) {
|
||||
delete[] m_data.path;
|
||||
safeDeleteArray(m_data.path);
|
||||
clear();
|
||||
}
|
||||
}
|
||||
|
2
deps/ox/src/ox/fs/filesystem/filesystem.hpp
vendored
2
deps/ox/src/ox/fs/filesystem/filesystem.hpp
vendored
@@ -20,7 +20,7 @@ namespace ox {
|
||||
|
||||
namespace detail {
|
||||
static inline void fsBuffFree(char *buff) noexcept {
|
||||
delete buff;
|
||||
safeDelete(buff);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user