diff options
author | Graham Madarasz (Graham) <graham@lindenlab.com> | 2013-03-01 11:21:35 -0800 |
---|---|---|
committer | Graham Madarasz (Graham) <graham@lindenlab.com> | 2013-03-01 11:21:35 -0800 |
commit | dfda8826eb4654845430520dac48c011e058e1c0 (patch) | |
tree | 7ace15924b286393cc312f312bb632bc0d6eef86 /indra/llcommon/llthread.h | |
parent | ae1aa461ea3f96c092e2a50ae40f290b03b25356 (diff) |
Make WL updates use pre-hashed strings for uniform sets
Diffstat (limited to 'indra/llcommon/llthread.h')
-rw-r--r-- | indra/llcommon/llthread.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llcommon/llthread.h b/indra/llcommon/llthread.h index c2f4184a8a..0d22bc863d 100644 --- a/indra/llcommon/llthread.h +++ b/indra/llcommon/llthread.h @@ -262,9 +262,9 @@ public: // so that two threads who get into the if in parallel // don't both attempt to the delete. // - if (mRef == 1) - delete this; mRef--; + if (mRef == 0) + delete this; if (sMutex) sMutex->unlock(); return 0; } |