From a89bc0af926ccf144c0d53521ba8ee440bb0409e Mon Sep 17 00:00:00 2001 From: "bienvenu%nventure.com" Date: Tue, 8 Jun 2004 17:25:50 +0000 Subject: [PATCH] fix for ldap operation ref-counting problem introduced in fix for 242789, r=dmose, sr=bzbarsky@mit.edu git-svn-id: svn://10.0.0.236/trunk@157592 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/directory/xpcom/base/src/nsLDAPConnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/directory/xpcom/base/src/nsLDAPConnection.cpp b/mozilla/directory/xpcom/base/src/nsLDAPConnection.cpp index a9d66f99fa5..f518a54a556 100644 --- a/mozilla/directory/xpcom/base/src/nsLDAPConnection.cpp +++ b/mozilla/directory/xpcom/base/src/nsLDAPConnection.cpp @@ -486,7 +486,7 @@ nsLDAPConnection::InvokeMessageCallback(LDAPMessage *aMsgHandle, return NS_ERROR_OUT_OF_MEMORY; // find the operation in question - operation = NS_STATIC_CAST(nsILDAPOperation *, mPendingOperations->Get(key)); + operation = getter_AddRefs(NS_STATIC_CAST(nsILDAPOperation *, mPendingOperations->Get(key))); if (!operation) { PR_LOG(gLDAPLogModule, PR_LOG_WARNING,