MAINT-4009: Patching a leak of LLPluginSharedMemory objects from the LLPluginProcessParent class.

master
Stinson Linden 2014-05-20 21:03:13 +01:00
parent 5537417ac3
commit a13d2f7f70
1 changed files with 4 additions and 0 deletions

View File

@ -131,6 +131,8 @@ LLPluginProcessParent::~LLPluginProcessParent()
{
// destroy the shared memory region
iter->second->destroy();
delete iter->second;
iter->second = NULL;
// and remove it from our map
mSharedMemoryRegions.erase(iter);
@ -960,6 +962,8 @@ void LLPluginProcessParent::receiveMessage(const LLPluginMessage &message)
{
// destroy the shared memory region
iter->second->destroy();
delete iter->second;
iter->second = NULL;
// and remove it from our map
mSharedMemoryRegions.erase(iter);