On Fri Aug 18 13:11:10 2023 +0000, Jacek Caban wrote:
What I mean is that if `This` is destroyed by `dispex_ref_decr`, then `This->magic++` operates on invalid memory. I guess that `remove_target_tasks` could work around it if you store the magic before calling `dispex_ref_decr`, but it's ugly...
Ah right, I could check for ref being 0 when processing the task and skip it then, is that fine?