From 5aadca41d47b7a0a0ca396c6fbe21d4d8d1e75f2 Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Sat, 10 Feb 2024 00:04:36 +0100 Subject: [PATCH] Fix crash on shutdown --- lib/utils/plugin-state-helpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/plugin-state-helpers.cpp b/lib/utils/plugin-state-helpers.cpp index 5a0980b7..c4b9a775 100644 --- a/lib/utils/plugin-state-helpers.cpp +++ b/lib/utils/plugin-state-helpers.cpp @@ -101,7 +101,7 @@ bool HighlightUIElementsEnabled() bool OBSIsShuttingDown() { - return GetSwitcher()->obsIsShuttingDown; + return GetSwitcher() && GetSwitcher()->obsIsShuttingDown; } bool InitialLoadIsComplete()