summaryrefslogtreecommitdiff
path: root/indra/newview/llvoavatarself.h
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2012-09-12 14:36:37 -0400
committerOz Linden <oz@lindenlab.com>2012-09-12 14:36:37 -0400
commit97d969a338c1e4f973eb817ba7701aff51a02ccb (patch)
tree7e22b1d1f6fa600196dc9310364e45f563eab68e /indra/newview/llvoavatarself.h
parent094dc91d0dae4971f6ae89840d791466a6fd6d08 (diff)
initial attempt to restore changes that make removing tcmalloc possible; not tested
Diffstat (limited to 'indra/newview/llvoavatarself.h')
-rw-r--r--indra/newview/llvoavatarself.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llvoavatarself.h b/indra/newview/llvoavatarself.h
index 543891ca63..2b273e616c 100644
--- a/indra/newview/llvoavatarself.h
+++ b/indra/newview/llvoavatarself.h
@@ -49,6 +49,16 @@ class LLVOAvatarSelf :
**/
public:
+ void* operator new(size_t size)
+ {
+ return ll_aligned_malloc_16(size);
+ }
+
+ void operator delete(void* ptr)
+ {
+ ll_aligned_free_16(ptr);
+ }
+
LLVOAvatarSelf(const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp);
virtual ~LLVOAvatarSelf();
virtual void markDead();