summaryrefslogtreecommitdiff
path: root/indra/newview/lllocalbitmaps.cpp
diff options
context:
space:
mode:
authorStinson Linden <stinson@lindenlab.com>2014-06-05 23:15:43 +0100
committerStinson Linden <stinson@lindenlab.com>2014-06-05 23:15:43 +0100
commit47a5e1c751bb8dfccef65ee841749d8209106c99 (patch)
treed0fbbda59d0078c2b686fa33d54e625e93c2a529 /indra/newview/lllocalbitmaps.cpp
parent739f4954b165bd993f8dfaf0636b7a29c228e091 (diff)
MAINT-4009: Ensuring that the local bitmaps are cleaned up on app exit.
Diffstat (limited to 'indra/newview/lllocalbitmaps.cpp')
-rwxr-xr-xindra/newview/lllocalbitmaps.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/lllocalbitmaps.cpp b/indra/newview/lllocalbitmaps.cpp
index 1948475530..e78e0233d7 100755
--- a/indra/newview/lllocalbitmaps.cpp
+++ b/indra/newview/lllocalbitmaps.cpp
@@ -824,6 +824,12 @@ LLLocalBitmapMgr::~LLLocalBitmapMgr()
{
}
+void LLLocalBitmapMgr::cleanupClass()
+{
+ std::for_each(sBitmapList.begin(), sBitmapList.end(), DeletePointer());
+ sBitmapList.clear();
+}
+
bool LLLocalBitmapMgr::addUnit()
{
bool add_successful = false;