mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 05:46:58 +00:00
[DOM] Avoid leaks in nsXMLPrettyPrinter.
This commit is contained in:
@@ -256,6 +256,8 @@ nsXMLPrettyPrinter::ContentRemoved(nsIDocument* aDocument,
|
||||
void
|
||||
nsXMLPrettyPrinter::NodeWillBeDestroyed(const nsINode* aNode)
|
||||
{
|
||||
MOZ_DIAGNOSTIC_ASSERT(mDocument == aNode);
|
||||
mDocument->RemoveMutationObserver(this);
|
||||
mDocument = nullptr;
|
||||
NS_RELEASE_THIS();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user