summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2013-08-19 14:49:11 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2013-08-19 14:49:11 -0400
commit0094c4299f6fb627c0a759374ede39450efdc8d0 (patch)
treefb6415383ecd7142e8ad2d051efb002a23d5ec7a /indra/newview
parentcc999b225ecfe035f785f3d2629cbf64e7640e3a (diff)
moved LLTrackPhaseWrapper to do its work in destructor
Diffstat (limited to 'indra/newview')
-rwxr-xr-xindra/newview/llappearancemgr.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp
index 939d817201..2e7ec0b2d5 100755
--- a/indra/newview/llappearancemgr.cpp
+++ b/indra/newview/llappearancemgr.cpp
@@ -467,13 +467,18 @@ public:
// virtual
void fire(const LLUUID& id)
{
- selfStopPhase(mTrackingPhase);
if (mCB)
{
mCB->fire(id);
}
}
+ // virtual
+ ~LLTrackPhaseWrapper()
+ {
+ selfStopPhase(mTrackingPhase);
+ }
+
protected:
std::string mTrackingPhase;
LLPointer<LLInventoryCallback> mCB;