Commits

BaoLinden  committed 8a0425c

fix for STORM-1052: crash at LLVOCacheEntry::~LLVOCacheEntry() line 138

  • Participants
  • Parent commits 6d0fce4

Comments (0)

Files changed (1)

File indra/newview/llvocache.cpp

 }
 
 LLVOCacheEntry::LLVOCacheEntry(LLAPRFile* apr_file)
+	: mBuffer(NULL)
 {
 	S32 size = -1;
 	BOOL success;
 
 LLVOCacheEntry::~LLVOCacheEntry()
 {
-	delete [] mBuffer;
+	if(mBuffer)
+	{
+		delete[] mBuffer;
+	}
 }