diff --git a/plugins/libimhex/source/pattern_language/evaluator.cpp b/plugins/libimhex/source/pattern_language/evaluator.cpp index 77488d0f6..7310c05c7 100644 --- a/plugins/libimhex/source/pattern_language/evaluator.cpp +++ b/plugins/libimhex/source/pattern_language/evaluator.cpp @@ -105,6 +105,8 @@ namespace hex::pl { this->m_customFunctions.clear(); this->m_scopes.clear(); + this->dataOffset() = 0x00; + for (auto &func : this->m_customFunctionDefinitions) delete func; this->m_customFunctionDefinitions.clear();