http://bugs.winehq.org/show_bug.cgi?id=59203 --- Comment #7 from Leonardo (MrPowerGamerBR) <winehq@mrpowergamerbr.com> --- Hello Bernhard, I have tried your patch and, while the game does not throw the "double after free" error, the game doesn't seem to start at all. On Wine 10.20, you can briefly see the game window opening before it crashes with "free(): double free detected in tcache 2". But with the patch, the game starts, the process is running, but there is no window at all (only the Wine Desktop background is shown) nor sound being played. But anyway, thanks for helping! :) I was also debugging some things, maybe it could help you out too. I found out that removing the `free( obj->entries );` call from the regression commit does not fix the issue. I mean, it does fix the issue of the game crashing, but it exhibits the same issues that happens when trying to run Wine 10.20 + jemalloc (palette corruption, incorrect colors, etc). When using 6ea18f668174e8122e0c192f2b67d8b2c1daca2f (the regression commit) as a base and "cherry-picking" the old palette.c file ("git checkout 4adb160635be8edc6ea66834d1c125990cb2b26c -- dlls/gdi32/palette.c"), the game runs correctly and there isn't any color corruption! And then I found out that removing the `free( obj->entries );` AND removing the "if (!(entries = realloc( palPtr->entries, count * sizeof(*palPtr->entries) )))" check to be only "realloc( palPtr->entries, count * sizeof(*palPtr->entries)" (essentially ignoring any errors) fixes the crash AND fixes the palette corruption issue. Of course, this """fix""" isn't good, and I haven't tested it on Wine 10.20 yet, but maybe this could shed a light on what could be causing the issue. :) -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.