From cef556c1520649bef8f54b472f56e39073d13a71 Mon Sep 17 00:00:00 2001 From: Nicky Date: Tue, 10 Jun 2014 11:23:07 +0200 Subject: [PATCH] More correction in llplugin ... --- indra/llplugin/llpluginprocesschild.cpp | 4 ++-- indra/llplugin/llpluginprocesschild.h | 2 +- indra/llplugin/llpluginprocessparent.cpp | 4 ++-- indra/llplugin/llpluginsharedmemory.h | 2 ++ 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/indra/llplugin/llpluginprocesschild.cpp b/indra/llplugin/llpluginprocesschild.cpp index a3eda29586..19b814bc35 100755 --- a/indra/llplugin/llpluginprocesschild.cpp +++ b/indra/llplugin/llpluginprocesschild.cpp @@ -366,8 +366,8 @@ void LLPluginProcessChild::receiveMessageRaw(const std::string &message) // This is a new region // use smartptr - LLPluginSharedMemory *region = new LLPluginSharedMemory; - //LLPluginSharedMemory region( new LLPluginSharedMemory ); + // LLPluginSharedMemory *region = new LLPluginSharedMemory; + LLPluginSharedMemoryPtr region( new LLPluginSharedMemory ); // if(region->attach(name, size)) diff --git a/indra/llplugin/llpluginprocesschild.h b/indra/llplugin/llpluginprocesschild.h index 9f1058f053..52f71e3b5b 100755 --- a/indra/llplugin/llpluginprocesschild.h +++ b/indra/llplugin/llpluginprocesschild.h @@ -99,7 +99,7 @@ private: // Use boost::shred_ptr so LLPluginSharedMemory gets properly destroyed // typedef std::map sharedMemoryRegionsType; - typedef std::map sharedMemoryRegionsType; + typedef std::map sharedMemoryRegionsType; // sharedMemoryRegionsType mSharedMemoryRegions; diff --git a/indra/llplugin/llpluginprocessparent.cpp b/indra/llplugin/llpluginprocessparent.cpp index 198613dd05..6fbe994e6a 100755 --- a/indra/llplugin/llpluginprocessparent.cpp +++ b/indra/llplugin/llpluginprocessparent.cpp @@ -1003,8 +1003,8 @@ std::string LLPluginProcessParent::addSharedMemory(size_t size) std::string name; // Use smartptr - LLPluginSharedMemory *region = new LLPluginSharedMemory; - //LLPluginSharedMemoryPtr region( new LLPluginSharedMemory ); + // LLPluginSharedMemory *region = new LLPluginSharedMemory; + LLPluginSharedMemoryPtr region( new LLPluginSharedMemory ); // // This is a new region diff --git a/indra/llplugin/llpluginsharedmemory.h b/indra/llplugin/llpluginsharedmemory.h index 231d83c156..b20d755e47 100755 --- a/indra/llplugin/llpluginsharedmemory.h +++ b/indra/llplugin/llpluginsharedmemory.h @@ -28,6 +28,8 @@ #ifndef LL_LLPLUGINSHAREDMEMORY_H #define LL_LLPLUGINSHAREDMEMORY_H +#include + class LLPluginSharedMemoryPlatformImpl; /**