summaryrefslogtreecommitdiffhomepage
path: root/src/path-search-result.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/path-search-result.cpp')
-rw-r--r--src/path-search-result.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/path-search-result.cpp b/src/path-search-result.cpp
index 5b4577bf..4e921abd 100644
--- a/src/path-search-result.cpp
+++ b/src/path-search-result.cpp
@@ -26,10 +26,12 @@ path_search_result::path_search_result()
path_search_result::~path_search_result() noexcept
{
- fm_debug_assert(_node);
- _node->vec.clear();
- _node->_next = std::move(_pool);
- _pool = std::move(_node);
+ if (_node) [[likely]]
+ {
+ _node->vec.clear();
+ _node->_next = std::move(_pool);
+ _pool = std::move(_node);
+ }
}
path_search_result::path_search_result(const path_search_result& x) noexcept