Diffusion Krita 195d84258630

Fix incorrect tile access in KisPaintDevice::clearSelection()

Authored by dkazakov on Mar 16 2019, 10:44 AM.

Description

Fix incorrect tile access in KisPaintDevice::clearSelection()

purge() must be called if and only if no other actor still accesses
the same tile. Therefore, the iterators should be destroyed before
calling to purge.

Theoretically this problem may lead to incorrect undo history
being written, though I couldn't imagine how (yet).

Details

Committed
dkazakovMar 17 2019, 4:07 PM
Parents
R37:f61672b78fbf: Fix a race condition in the lockfree hash table
Branches
Unknown
Tags
Unknown