MAINT-4009: Patching a leak of LLPluginSharedMemory objects from the LLPluginProcessParent class.
parent
5537417ac3
commit
a13d2f7f70
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue