summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandreykproductengine <akleshchev@productengine.com>2017-03-28 16:24:50 +0300
committerandreykproductengine <akleshchev@productengine.com>2017-03-28 16:24:50 +0300
commit084f7cf44a3259242d28264f0bb191004282dd9c (patch)
tree34d64ee164fcbaad8c157f07ba63bcd8e67befd0
parentf1e00870dfef809b2c2842051140cc720650649a (diff)
MAINT-7257 Added null check for volume manager
-rw-r--r--indra/llprimitive/llprimitive.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llprimitive/llprimitive.cpp b/indra/llprimitive/llprimitive.cpp
index 186716609c..bfa65666b5 100644
--- a/indra/llprimitive/llprimitive.cpp
+++ b/indra/llprimitive/llprimitive.cpp
@@ -172,7 +172,7 @@ LLPrimitive::~LLPrimitive()
{
clearTextureList();
// Cleanup handled by volume manager
- if (mVolumep)
+ if (mVolumep && sVolumeManager)
{
sVolumeManager->unrefVolume(mVolumep);
}