summaryrefslogtreecommitdiff
path: root/indra/newview/llvocache.cpp
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2011-03-09 11:56:34 -0800
committerMerov Linden <merov@lindenlab.com>2011-03-09 11:56:34 -0800
commit0c02401498521f87d38778df0e795960aa5445e1 (patch)
tree0402521bd62af1ac3b059ed81862a80fe8c569ee /indra/newview/llvocache.cpp
parent76a325b83271424d231561d8ef099df1406c9517 (diff)
parent7e7ea1eec4ab69fb46c5ce3749ef353fc5850829 (diff)
Crash hunters: pull in viewer-development
Diffstat (limited to 'indra/newview/llvocache.cpp')
-rw-r--r--indra/newview/llvocache.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp
index a933500706..b888a263d0 100644
--- a/indra/newview/llvocache.cpp
+++ b/indra/newview/llvocache.cpp
@@ -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;
+ }
}