Prevent accidental double-frees
- matcher.cpp, survey.cpp: setting the state pointer to null/nullptr in ::shutdown() to prevent errors caused by accidental double-frees - an additional check if the pointer is null already is not necessary as the standard guarantees that nothing happens if delete is called on a nullpointer Co-Authored-By: Alan <3719547+lethosor@users.noreply.github.com>develop
parent
efe62b412c
commit
60e83046f8
Loading…
Reference in New Issue