Commit 8563adb7 authored by Alan Alpert's avatar Alan Alpert Committed by The Qt Project
Browse files

Avoid modifying cacheCount while iterating over it


Because the cache items can be referenced in bindings, the last ref for
the item can be cleared at any time due to JS ownership. This could
modify the cache count while iterating over it. The removal from the
cache list is now postponed until iteration is finished. All iteration
cases can already handle an invalid cache item being found in the list.

Task-number: QTBUG-30555
Change-Id: I1c0721b4d7e0dd69ce7a73824c1aa7b50d2c32a2
Reviewed-by: default avatarAlbert Astals Cid <albert.astals@canonical.com>
Reviewed-by: default avatarLars Knoll <lars.knoll@digia.com>
parent 0bcf5496
No related merge requests found
Showing with 16 additions and 13 deletions
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