mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
8b7ae9afd8
Lock Simulation weak_ptr in all visitors to avoid use after free. And swap order for weak_ptr locking with locking collision world mutex to avoid deadlock when underlying object tries to lock the same mutex in the destructor. Add SimulationImpl type to avoid use of FrameData without locking weak_ptr.