summaryrefslogtreecommitdiffstats
path: root/test/src/example.cpp
diff options
context:
space:
mode:
authorJoël Lamotte (Klaim) <mjklaim@gmail.com>2023-10-05 00:33:47 +0200
committerJoël Lamotte (Klaim) <mjklaim@gmail.com>2023-10-05 16:58:49 +0200
commit5134c82573b727887b4f8dbd574c4db954298452 (patch)
tree7d32c6d64e627de1f7c52affaf4a9f35d974a16a /test/src/example.cpp
parentcd61a9bbe881b902750111eac8b02c04778f366b (diff)
downloadredot-cpp-5134c82573b727887b4f8dbd574c4db954298452.tar.gz
Fixes crash in ClassDB::deinitialize due to usage of invalid iterator.
After the removed call to `std::vector::erase` all iterators, `i` included, are invalidated and therefore this code has undefined behavior (which can or not lead to a crash). This change delays the removal of class names from `class_register_order` to after having gone through it's content, removing the undefined behavior.
Diffstat (limited to 'test/src/example.cpp')
0 files changed, 0 insertions, 0 deletions