qt: fix potential use after free
If I interpreted it correctly,
- When
m_reader->abandonis called, it schedules the object for deletion. - The unique pointer
TaskHandle<SVGColorImageReader> m_readermay try to dereference the internal pointer, which may no longer point to a validSVGColorImageReaderinstance (in order to callabandonmethod again).
Also, I added a check in (see the comments, this should not be necessary)handleImageRead to not allow null pointer dereference.
Edited by Fatih Uzunoğlu