Fix possible memory leak. bug 62668. r=hwaara, sr=attinasi. (initial fix by gverdun@acm.org)
git-svn-id: svn://10.0.0.236/trunk@90119 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
c8fe6486de
commit
0ad256180d
@ -366,12 +366,12 @@ nsImageDocument::CreateSyntheticDocument()
|
||||
}
|
||||
image->SetDocument(this, PR_FALSE, PR_TRUE);
|
||||
|
||||
char* src;
|
||||
mDocumentURL->GetSpec(&src);
|
||||
nsXPIDLCString src;
|
||||
mDocumentURL->GetSpec(getter_Copies(src));
|
||||
|
||||
nsString src_string; src_string.AssignWithConversion(src);
|
||||
nsHTMLValue val(src_string);
|
||||
delete[] src;
|
||||
|
||||
image->SetHTMLAttribute(nsHTMLAtoms::src, val, PR_FALSE);
|
||||
image->SetHTMLAttribute(nsHTMLAtoms::alt, val, PR_FALSE);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user