Files
SceneSwitcher/lib/utils
TheRealAlexV 3b63db2bde
Some checks failed
debian-build / build (push) Has been cancelled
Push to master / Check Formatting 🔍 (push) Has been cancelled
Push to master / Build Project 🧱 (push) Has been cancelled
Push to master / Create Release 🛫 (push) Has been cancelled
Fix crash in SendWebsocketVendorEvent during OBS shutdown
Guard the vendor event emission with obs_get_module("obs-websocket").
During obs_shutdown() modules are unloaded one-by-one; obs-websocket is
unloaded before advanced-scene-switcher, so the proc handler pointer (_ph)
cached in obs-websocket-api.h is already stale when FreeSceneSwitcher()
runs its stop steps. proc_handler_call() then dereferences freed memory
(use-after-free in pthread_mutex_unlock).

The existing OBSIsShuttingDown() guard does not catch this path: the
forced-exit that follows a "Source Cleanup Error" (scene collection
switch) never fires the SCRIPTING_SHUTDOWN frontend event, so the
plugin's obsIsShuttingDown flag is not set. obs_get_module() returns NULL
once the module is unloaded, which is the reliable signal that
obs-websocket's proc handler is gone.

Refs: #1404
2026-09-13 11:08:04 +02:00
..
2026-04-30 22:39:06 +02:00
2025-06-09 14:20:44 +02:00
2025-06-09 14:20:44 +02:00
2026-05-15 19:15:19 +02:00
2026-05-15 19:15:19 +02:00
2024-06-07 21:44:21 +02:00
2024-06-07 21:44:21 +02:00
2024-01-27 14:10:34 +01:00
2024-01-27 14:10:34 +01:00
2024-02-24 16:47:50 +01:00
2024-04-20 17:39:47 +02:00
2024-04-20 17:39:47 +02:00
2024-02-24 16:47:50 +01:00
2024-02-24 16:47:50 +01:00
2026-07-11 19:50:58 +02:00
2025-03-11 22:12:05 +01:00
2025-07-13 18:17:46 +02:00
2025-07-13 18:17:46 +02:00
2025-06-09 14:20:44 +02:00
2025-11-10 18:45:06 +01:00
2026-08-01 22:34:01 +02:00
2024-03-02 15:27:02 +01:00
2024-08-14 21:51:42 +02:00
2026-07-11 19:50:58 +02:00
2026-07-11 19:50:58 +02:00
2026-07-11 19:50:58 +02:00
2026-07-11 19:50:58 +02:00
2026-07-11 19:50:58 +02:00