Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix using dangling pointer in iterator dtor in UTF-8 builds
Destroying an iterator with a lifetime greater than that of the associated string resulted in an invalid memory access due to using the linked list of string iterators in the iterator dtor. Fix this by clearing all the associated iterators when the string itself is destroyed. This fixes ASAN errors in wxDateTime::ParseDateTime() where "endTime" const_iterator was destroyed after the destruction of the associated "timestr" after successfully parsing the date.
- Loading branch information