MAINT-7257 Added null check for volume manager

meow-7.2.2
andreykproductengine 2017-03-28 16:24:50 +03:00
parent f1e00870df
commit 084f7cf44a
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ LLPrimitive::~LLPrimitive()
{
clearTextureList();
// Cleanup handled by volume manager
if (mVolumep)
if (mVolumep && sVolumeManager)
{
sVolumeManager->unrefVolume(mVolumep);
}