More correction in llplugin ...
parent
9c7ab535d4
commit
cef556c152
|
|
@ -366,8 +366,8 @@ void LLPluginProcessChild::receiveMessageRaw(const std::string &message)
|
|||
// This is a new region
|
||||
|
||||
// <FS:ND> use smartptr
|
||||
LLPluginSharedMemory *region = new LLPluginSharedMemory;
|
||||
//LLPluginSharedMemory region( new LLPluginSharedMemory );
|
||||
// LLPluginSharedMemory *region = new LLPluginSharedMemory;
|
||||
LLPluginSharedMemoryPtr region( new LLPluginSharedMemory );
|
||||
// </FS:ND>
|
||||
|
||||
if(region->attach(name, size))
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ private:
|
|||
|
||||
// <FS:ND> Use boost::shred_ptr so LLPluginSharedMemory gets properly destroyed
|
||||
// typedef std::map<std::string, LLPluginSharedMemory*> sharedMemoryRegionsType;
|
||||
typedef std::map<std::string, LLPluginSharedMemory > sharedMemoryRegionsType;
|
||||
typedef std::map<std::string, LLPluginSharedMemoryPtr > sharedMemoryRegionsType;
|
||||
// </FS:ND>
|
||||
|
||||
sharedMemoryRegionsType mSharedMemoryRegions;
|
||||
|
|
|
|||
|
|
@ -1003,8 +1003,8 @@ std::string LLPluginProcessParent::addSharedMemory(size_t size)
|
|||
std::string name;
|
||||
|
||||
// <FS:ND> Use smartptr
|
||||
LLPluginSharedMemory *region = new LLPluginSharedMemory;
|
||||
//LLPluginSharedMemoryPtr region( new LLPluginSharedMemory );
|
||||
// LLPluginSharedMemory *region = new LLPluginSharedMemory;
|
||||
LLPluginSharedMemoryPtr region( new LLPluginSharedMemory );
|
||||
// </FS:ND>
|
||||
|
||||
// This is a new region
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@
|
|||
#ifndef LL_LLPLUGINSHAREDMEMORY_H
|
||||
#define LL_LLPLUGINSHAREDMEMORY_H
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
class LLPluginSharedMemoryPlatformImpl;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue