diff --git a/intl/chardet/src/nsObserverBase.cpp b/intl/chardet/src/nsObserverBase.cpp index 4a326793dc18..064f3ccb8647 100644 --- a/intl/chardet/src/nsObserverBase.cpp +++ b/intl/chardet/src/nsObserverBase.cpp @@ -60,8 +60,8 @@ NS_IMETHODIMP nsObserverBase::NotifyWebShell( if(NS_SUCCEEDED(res)) { nsCOMPtr httpChannel(do_QueryInterface(channel,&res)); if(NS_SUCCEEDED(res)) { - nsIAtom* atom=nsnull; - httpChannel->GetRequestMethod(&atom); + nsCOMPtr atom=nsnull; + httpChannel->GetRequestMethod(getter_AddRefs(atom)); if(atom) { nsAutoString method; atom->ToString(method);