Networking changes: Reworked nsIURL, adding setters, factoring Open. Unsigned arguments for nsIStreamListener.
git-svn-id: svn://10.0.0.236/trunk@16495 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -368,8 +368,10 @@ nsTextControlFrame::PostCreateWidget(nsIPresContext* aPresContext,
|
||||
if (nsnull != doc) {
|
||||
docURL = doc->GetDocumentURL();
|
||||
NS_RELEASE(doc);
|
||||
URLName = (char*)PR_Malloc(PL_strlen(docURL->GetSpec())+1);
|
||||
PL_strcpy(URLName, docURL->GetSpec());
|
||||
const char* spec;
|
||||
(void)docURL->GetSpec(&spec);
|
||||
URLName = (char*)PR_Malloc(PL_strlen(spec)+1);
|
||||
PL_strcpy(URLName, spec);
|
||||
NS_RELEASE(docURL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user