avoid dangling pointers in candidate cleanup
This commit is contained in:
parent
d49dc3d628
commit
9e05cc1d69
1 changed files with 1 additions and 0 deletions
|
@ -396,6 +396,7 @@ int main()
|
||||||
for (auto &candidate : next_candidates)
|
for (auto &candidate : next_candidates)
|
||||||
{
|
{
|
||||||
delete[] candidate.code_points;
|
delete[] candidate.code_points;
|
||||||
|
candidate.code_points = nullptr;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue