summaryrefslogtreecommitdiff
path: root/indra/llappearance/lllocaltextureobject.cpp
diff options
context:
space:
mode:
authorRye Mutt <rye@alchemyviewer.org>2022-10-19 22:16:39 -0400
committerRye Mutt <rye@alchemyviewer.org>2022-10-19 22:16:39 -0400
commitd0f0d77474ac3630a2d1fca2f819ef67bdfff0fb (patch)
treedaa2edad8020e7071e9ce64ed08684e4d4570f0d /indra/llappearance/lllocaltextureobject.cpp
parent59062cec1cf108863f1101b193b7dfe89e79cb28 (diff)
Fix leak of tex layer objects during LLLocalTextureObject destruction
Diffstat (limited to 'indra/llappearance/lllocaltextureobject.cpp')
-rw-r--r--indra/llappearance/lllocaltextureobject.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/llappearance/lllocaltextureobject.cpp b/indra/llappearance/lllocaltextureobject.cpp
index 3f564ec3de..0481326e9e 100644
--- a/indra/llappearance/lllocaltextureobject.cpp
+++ b/indra/llappearance/lllocaltextureobject.cpp
@@ -76,6 +76,7 @@ LLLocalTextureObject::LLLocalTextureObject(const LLLocalTextureObject& lto) :
LLLocalTextureObject::~LLLocalTextureObject()
{
+ delete_and_clear(mTexLayers);
}
LLGLTexture* LLLocalTextureObject::getImage() const