summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2019-04-03 18:29:35 +0300
committerandreykproductengine <andreykproductengine@lindenlab.com>2019-04-03 18:29:35 +0300
commit8a7e386696b73fe79d3d6b7f45812c4982be3370 (patch)
treea9a282bd3e30eb44d5da3372b3f1174326d1343f
parent72a14e46e790f279f1a5de04639af1e8c1d1e35e (diff)
SL-10685 LLPanelLogin crash
-rw-r--r--indra/newview/llpanellogin.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp
index 142dea83e2..0637010b0b 100644
--- a/indra/newview/llpanellogin.cpp
+++ b/indra/newview/llpanellogin.cpp
@@ -748,7 +748,10 @@ void LLPanelLogin::closePanel()
{
if (sInstance)
{
- LLPanelLogin::sInstance->getParent()->removeChild( LLPanelLogin::sInstance );
+ if (LLPanelLogin::sInstance->getParent())
+ {
+ LLPanelLogin::sInstance->getParent()->removeChild(LLPanelLogin::sInstance);
+ }
delete sInstance;
sInstance = NULL;