Translations:Development/Tutorials/Common Programming Mistakes/49/en

From KDE TechBase

This code will potentially crash because it is a dangling iterator after the call to erase(). You have to rewrite the code this way: