1
0
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:
Moonchild
2026-04-24 20:38:39 +02:00
committed by roytam1
parent 59887ccee8
commit bee96124c5
+2
View File
@@ -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();
}