diff --git a/mozilla/docshell/base/nsWebShell.cpp b/mozilla/docshell/base/nsWebShell.cpp index c66732076ab..e3c2338c514 100644 --- a/mozilla/docshell/base/nsWebShell.cpp +++ b/mozilla/docshell/base/nsWebShell.cpp @@ -1055,7 +1055,7 @@ nsWebShell::DoLoadURL(nsIURI * aUri, docViewer->GetDocument(*getter_AddRefs(doc)); // Get the URL for the document - nsCOMPtr docURL = nsDontAddRef(doc->GetDocumentURL()); + nsCOMPtr docURL = getter_AddRefs(doc->GetDocumentURL()); if (aUri && docURL && EqualBaseURLs(docURL, aUri)) { diff --git a/mozilla/webshell/src/nsWebShell.cpp b/mozilla/webshell/src/nsWebShell.cpp index c66732076ab..e3c2338c514 100644 --- a/mozilla/webshell/src/nsWebShell.cpp +++ b/mozilla/webshell/src/nsWebShell.cpp @@ -1055,7 +1055,7 @@ nsWebShell::DoLoadURL(nsIURI * aUri, docViewer->GetDocument(*getter_AddRefs(doc)); // Get the URL for the document - nsCOMPtr docURL = nsDontAddRef(doc->GetDocumentURL()); + nsCOMPtr docURL = getter_AddRefs(doc->GetDocumentURL()); if (aUri && docURL && EqualBaseURLs(docURL, aUri)) {