Skip to content
Commit bddb06c5 authored by Thomas Fischer's avatar Thomas Fischer 💬
Browse files

Fixing conflict btwn iterating over QMap and removing element

Iterating over a QMap<K,V> object and then for one selected element
stopping the iteration and removing this element using the key, i.e.
QMap<K,V>::remove(key) interferes with the map's internal memory
management and may lead to crashes.

To avoid interference, better to remove the selected element using the
iterator directly, i.e. QMap<K,V>::erase(it).

BUG: 398136
FIXED-IN: 0.8.2
parent 8abb7794
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment