Bug 482939 - Additional patch; r=roc a=bsmedberg
authorKai Engert <kaie@kuix.de>
Fri, 26 Nov 2010 12:20:30 -0500
changeset 58264 5e08304cbc99b06d7a479ae6e553619fc188c383
parent 58263 e5d2c136dcda834c06c83e44993463b8b548cb30
child 58265 0d7dd95a1d9a3326a4904811ae09574e49ad8112
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersroc, bsmedberg
bugs482939
milestone2.0b8pre
Bug 482939 - Additional patch; r=roc a=bsmedberg
security/manager/ssl/src/nsClientAuthRemember.cpp
--- a/security/manager/ssl/src/nsClientAuthRemember.cpp
+++ b/security/manager/ssl/src/nsClientAuthRemember.cpp
@@ -59,24 +59,24 @@
 NSSCleanupAutoPtrClass(CERTCertificate, CERT_DestroyCertificate)
 
 NS_IMPL_THREADSAFE_ISUPPORTS2(nsClientAuthRememberService, 
                               nsIObserver,
                               nsISupportsWeakReference)
 
 nsClientAuthRememberService::nsClientAuthRememberService()
 {
-  monitor = PR_NewMonitor();
+  monitor = nsAutoMonitor::NewMonitor("security.clientAuthRememberServiceMonitor");
 }
 
 nsClientAuthRememberService::~nsClientAuthRememberService()
 {
   RemoveAllFromMemory();
   if (monitor)
-    PR_DestroyMonitor(monitor);
+    nsAutoMonitor::DestroyMonitor(monitor);
 }
 
 nsresult
 nsClientAuthRememberService::Init()
 {
   if (!mSettingsTable.Init())
     return NS_ERROR_OUT_OF_MEMORY;