summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorMonty Brandenberg <monty@lindenlab.com>2010-12-13 11:17:41 -0500
committerMonty Brandenberg <monty@lindenlab.com>2010-12-13 11:17:41 -0500
commit622c9f772c5ca11d2c05c78e23761fae2467dd2f (patch)
treee4d3d1fcf8ca0d807dc5ea6768e4170c9b65d17c /indra/newview
parente0e223c196972e91da80b852921fe3ff627f8a68 (diff)
Cleanup a cross-thread command dtor. It was technically
correct but looked a bit dodgy with pointer ownership.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/lltexturefetch.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/lltexturefetch.cpp b/indra/newview/lltexturefetch.cpp
index 88905372f6..e13fcf027f 100644
--- a/indra/newview/lltexturefetch.cpp
+++ b/indra/newview/lltexturefetch.cpp
@@ -1844,8 +1844,9 @@ LLTextureFetch::~LLTextureFetch()
while (! mCommands.empty())
{
- delete mCommands.front();
+ TFRequest * req(mCommands.front());
mCommands.erase(mCommands.begin());
+ delete req;
}
// ~LLQueuedThread() called here