diff --git a/deps/ox/src/ox/fs/filesystem/filelocation.cpp b/deps/ox/src/ox/fs/filesystem/filelocation.cpp index 097f7f9c..7fb30a21 100644 --- a/deps/ox/src/ox/fs/filesystem/filelocation.cpp +++ b/deps/ox/src/ox/fs/filesystem/filelocation.cpp @@ -11,7 +11,7 @@ namespace ox { FileLocation::~FileLocation() { - if (m_type == Path && m_data.path) { + if (m_type == Path) { delete m_data.path; m_data.path = nullptr; } diff --git a/deps/ox/src/ox/std/vector.hpp b/deps/ox/src/ox/std/vector.hpp index a6fd25ec..8ad1eeb9 100644 --- a/deps/ox/src/ox/std/vector.hpp +++ b/deps/ox/src/ox/std/vector.hpp @@ -99,10 +99,8 @@ Vector::Vector(Vector &&other) noexcept { template Vector::~Vector() noexcept { - if (m_items) { - delete[] m_items; - m_items = nullptr; - } + delete[] m_items; + m_items = nullptr; } template