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

meow-7.2.2
Xiaohong Bao 2011-03-08 14:20:14 -07:00
parent b319e25598
commit 9f765cdb13
1 changed files with 5 additions and 1 deletions

View File

@ -71,6 +71,7 @@ LLVOCacheEntry::LLVOCacheEntry()
}
LLVOCacheEntry::LLVOCacheEntry(LLAPRFile* apr_file)
: mBuffer(NULL)
{
S32 size = -1;
BOOL success;
@ -135,7 +136,10 @@ LLVOCacheEntry::LLVOCacheEntry(LLAPRFile* apr_file)
LLVOCacheEntry::~LLVOCacheEntry()
{
delete [] mBuffer;
if(mBuffer)
{
delete[] mBuffer;
}
}