Commits

leslie_linden  committed a863e79

* Added image cleanup to hud blob effect

Reviewed by Richard.

  • Participants
  • Parent commits 71821bc

Comments (0)

Files changed (2)

File indra/newview/llhudeffectblob.cpp

 {
 }
 
+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);

File indra/newview/llhudeffectblob.h

 public:
 	friend class LLHUDObject;
 
+	void markDead();
+
 	void setPixelSize(S32 pixels) { mPixelSize = pixels; }
 
 protected: