mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-11 07:00:21 +02:00
Fixes a crash in xcb thunks since more stuff on FEX side has moved over to jemalloc. Destructors don't actually get called when a shared library is removed. It's some weirdo quirk that we can't work around. Instead refcount Display connections being created and disconnected. Creating the thread on the first display creation, and tearing down on final display teardown. Must be merged before #2564 otherwise that PR will break thunks.