From 41aa85a970c4d06ee864d8afb46fe41ba0842d9c Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Wed, 7 Feb 2024 00:21:49 -0500
Subject: [PATCH] Fix another shutdown crash

---
 indra/newview/llappviewer.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp
index 575ab3430d9..d743657e4f3 100644
--- a/indra/newview/llappviewer.cpp
+++ b/indra/newview/llappviewer.cpp
@@ -1772,6 +1772,8 @@ bool LLAppViewer::cleanup()
 
 	LL_INFOS() << "Global stuff deleted" << LL_ENDL;
 
+	ALStreamInfo::deleteSingleton();
+
 	if (gAudiop)
 	{
         LL_INFOS() << "Shutting down audio" << LL_ENDL;
@@ -1783,8 +1785,6 @@ bool LLAppViewer::cleanup()
 		gAudiop = nullptr;
 	}
 
-	ALStreamInfo::deleteSingleton();
-
 	// Note: this is where LLFeatureManager::getInstance()-> used to be deleted.
 
 	// Patch up settings for next time
-- 
GitLab