diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp
index 575ab3430d956dd355434ffae9d3ee791cc87154..d743657e4f37743c6b443ad4190bce9b9b93e288 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