https://bugs.winehq.org/show_bug.cgi?id=49590
--- Comment #10 from Paul Gofman pgofman@codeweavers.com --- I think I found at least one reason for heap corruption, that is free of the random pointer by Wine (which accidentally happens to be a pointer already freed previously).
I've sent a patch for that [1].
However, I still see crashes in memory management with ntdll-Heap_Improvements patchset. I am not sure yet if this is a bug in the patchset itself or caused by some memory naughtiness by Wine or Agent.exe, this needs further debugging.
Does the linked patch without ntdll-Heap_Improvements patchset (that is, ntdll-Heap_Improvements excluded from Staging pacthes by -W ntdll-Heap_Improvements) solve the issue completely?
1. https://source.winehq.org/patches/data/189533