mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
Bug 467008. Pointing to a non-existent file:// binding URI leaks. r+sr=sicking
This commit is contained in:
parent
4203eb7bc0
commit
eced8f9366
@ -1260,7 +1260,16 @@ nsXBLService::FetchBindingDocument(nsIContent* aBoundElement, nsIDocument* aBoun
|
||||
xblListener->AddRequest(req);
|
||||
|
||||
// Now kick off the async read.
|
||||
channel->AsyncOpen(xblListener, nsnull);
|
||||
rv = channel->AsyncOpen(xblListener, nsnull);
|
||||
if (NS_FAILED(rv)) {
|
||||
// Well, we won't be getting a load. Make sure to clean up our stuff!
|
||||
target->RemoveEventListener(NS_LITERAL_STRING("load"),
|
||||
static_cast<nsIDOMLoadListener*>(xblListener),
|
||||
PR_FALSE);
|
||||
if (bindingManager) {
|
||||
bindingManager->RemoveLoadingDocListener(aDocumentURI);
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user