summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatermemleak.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llfloatermemleak.cpp')
-rw-r--r--indra/newview/llfloatermemleak.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llfloatermemleak.cpp b/indra/newview/llfloatermemleak.cpp
index 58931d112e..9edfe1e354 100644
--- a/indra/newview/llfloatermemleak.cpp
+++ b/indra/newview/llfloatermemleak.cpp
@@ -90,6 +90,11 @@ LLFloaterMemLeak::~LLFloaterMemLeak()
void LLFloaterMemLeak::release()
{
+ if(mLeakedMem.empty())
+ {
+ return ;
+ }
+
for(S32 i = 0 ; i < (S32)mLeakedMem.size() ; i++)
{
delete[] mLeakedMem[i] ;