summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStinson Linden <stinson@lindenlab.com>2014-05-24 00:05:02 +0100
committerStinson Linden <stinson@lindenlab.com>2014-05-24 00:05:02 +0100
commitfdc787cc06cd09a70e13cfb9da6f0aecd5d5d50f (patch)
tree7d5c455cd1d12d225d8c0a4cfbe2c9f5b6a365dc
parent0160c514c5e0bc3e575b33ef27924a9c8c7c30cf (diff)
MAINT-4009: Patching a memory leak of ParamDescriptor objects.
-rwxr-xr-xindra/llcommon/llinitparam.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llcommon/llinitparam.h b/indra/llcommon/llinitparam.h
index 2532566319..7aa87fcd0e 100755
--- a/indra/llcommon/llinitparam.h
+++ b/indra/llcommon/llinitparam.h
@@ -31,6 +31,7 @@
#include <vector>
#include <list>
#include <boost/function.hpp>
+#include <boost/shared_ptr.hpp>
#include <boost/type_traits/is_convertible.hpp>
#include <boost/type_traits/is_enum.hpp>
#include <boost/unordered_map.hpp>
@@ -629,7 +630,7 @@ namespace LLInitParam
UserData* mUserData;
};
- typedef ParamDescriptor* ParamDescriptorPtr;
+ typedef boost::shared_ptr<ParamDescriptor> ParamDescriptorPtr;
// each derived Block class keeps a static data structure maintaining offsets to various params
class LL_COMMON_API BlockDescriptor