summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew A. de Laix <alain@lindenlab.com>2010-11-09 11:15:01 -0800
committerAndrew A. de Laix <alain@lindenlab.com>2010-11-09 11:15:01 -0800
commit73b6d4d058107137425cd202e79fb0a2d9c22896 (patch)
tree206656e6ac90aff254cfb7532f0d1910a39dff85
parent2b6cf1d79929c1fb9b62f52f80bd72a949a4d11e (diff)
Fix crash if thread is manually shut down before it is destroyed.
-rw-r--r--indra/llcommon/llthread.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/llcommon/llthread.cpp b/indra/llcommon/llthread.cpp
index d7b7c3699c..2408be74b9 100644
--- a/indra/llcommon/llthread.cpp
+++ b/indra/llcommon/llthread.cpp
@@ -153,10 +153,12 @@ void LLThread::shutdown()
}
delete mRunCondition;
+ mRunCondition = 0;
- if (mIsLocalPool)
+ if (mIsLocalPool && mAPRPoolp)
{
apr_pool_destroy(mAPRPoolp);
+ mAPRPoolp = 0;
}
}