mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
Fix uri leak. Bug 176985, patch by Harshal <keeda@hotpop.com>,
r=peterv, sr=bzbarsky, a=roc+moz
This commit is contained in:
parent
ed9ed0c560
commit
325b307026
@ -66,9 +66,8 @@
|
||||
#include "nsIDOMWindowInternal.h"
|
||||
#include "nsIDOMHTMLFormElement.h"
|
||||
#include "nsIStreamListener.h"
|
||||
#include "nsIURL.h"
|
||||
#include "nsIURI.h"
|
||||
#include "nsIIOService.h"
|
||||
#include "nsIURL.h"
|
||||
#include "nsNetUtil.h"
|
||||
#include "nsIContentViewerContainer.h"
|
||||
#include "nsIContentViewer.h"
|
||||
@ -2002,8 +2001,8 @@ nsHTMLDocument::SetDomain(const nsAString& aDomain)
|
||||
return NS_ERROR_FAILURE;
|
||||
NS_ConvertUTF8toUCS2 newURIString(scheme);
|
||||
newURIString += NS_LITERAL_STRING("://") + aDomain + NS_ConvertUTF8toUCS2(path);
|
||||
nsIURI *newURI;
|
||||
if (NS_FAILED(NS_NewURI(&newURI, newURIString)))
|
||||
nsCOMPtr<nsIURI> newURI;
|
||||
if (NS_FAILED(NS_NewURI(getter_AddRefs(newURI), newURIString)))
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
// Get codebase principal
|
||||
|
Loading…
Reference in New Issue
Block a user