Skip to content
Snippets Groups Projects
Commit a13d2f7f authored by Stinson Linden's avatar Stinson Linden
Browse files

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

parent 5537417a
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment