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,