Fix a potential crash in imagecolors
Unlike std::vector, erase an iterator can invalidate the iterator. QList may optionally move the data away from beginning.
Unlike std::vector, erase an iterator can invalidate the iterator. QList may optionally move the data away from beginning.