diff --git a/indra/llcommon/llthread.cpp b/indra/llcommon/llthread.cpp
index 12e42a0cd0be010a7a10c5dbb657fb463266ca0c..a8482872eedbd273fc4381beff0c9e4fbce4fbcb 100644
--- a/indra/llcommon/llthread.cpp
+++ b/indra/llcommon/llthread.cpp
@@ -257,7 +257,6 @@ void LLThread::shutdown()
             pthread_cancel(mNativeHandle);
 #endif
             mRecorder.reset();
-
             mStatus = STOPPED;
             return;
         }
@@ -271,7 +270,7 @@ void LLThread::shutdown()
         // missed chance to properly shut down recorder (needs to be done in thread context)
         // probably due to abnormal thread termination
         // so just leak it and remove it from parent
-        LLTrace::get_master_thread_recorder()->removeChildRecorder(mRecorder.get());
+        LLTrace::get_master_thread_recorder()->removeChildRecorder(mRecorder.release());
     }
 }