From 643a175a477b9d889b1a03e0fff8e864f3e5470b Mon Sep 17 00:00:00 2001 From: Leslie Linden Date: Fri, 21 Oct 2011 11:27:33 -0700 Subject: * Added image cleanup to hud blob effect Reviewed by Richard. --- indra/newview/llhudeffectblob.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'indra/newview/llhudeffectblob.cpp') diff --git a/indra/newview/llhudeffectblob.cpp b/indra/newview/llhudeffectblob.cpp index d8687eed8d..c909551b51 100644 --- a/indra/newview/llhudeffectblob.cpp +++ b/indra/newview/llhudeffectblob.cpp @@ -44,12 +44,20 @@ LLHUDEffectBlob::~LLHUDEffectBlob() { } +void LLHUDEffectBlob::markDead() +{ + mImage = NULL; + + LLHUDEffect::markDead(); +} + void LLHUDEffectBlob::render() { F32 time = mTimer.getElapsedTimeF32(); if (mDuration < time) { markDead(); + return; } LLVector3 pos_agent = gAgent.getPosAgentFromGlobal(mPositionGlobal); -- cgit v1.2.3