From 024e5ff23542cf0604b73901311bb4d024957b1c Mon Sep 17 00:00:00 2001
From: Seth ProductEngine <slitovchuk@productengine.com>
Date: Tue, 9 Nov 2010 00:55:44 +0200
Subject: [PATCH] STORM-559 FIXED crash upon quitting the viewer while an
 outfit is being saved.

---
 indra/newview/llappearancemgr.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp
index 62074ddcd5c..4e0bfb2e22c 100644
--- a/indra/newview/llappearancemgr.cpp
+++ b/indra/newview/llappearancemgr.cpp
@@ -2437,6 +2437,12 @@ class LLShowCreatedOutfit: public LLInventoryCallback
 
 	virtual ~LLShowCreatedOutfit()
 	{
+		if (!LLApp::isRunning())
+		{
+			llwarns << "called during shutdown, skipping" << llendl;
+			return;
+		}
+
 		LLSD key;
 		
 		//EXT-7727. For new accounts LLShowCreatedOutfit is created during login process
-- 
GitLab