Skip to content

Fix: PostmessageTransport are leaking as they keep listening to window events when stopped#155

Merged
toger5 merged 2 commits intomasterfrom
valere/fix_message_transport_leak
Jan 29, 2026
Merged

Fix: PostmessageTransport are leaking as they keep listening to window events when stopped#155
toger5 merged 2 commits intomasterfrom
valere/fix_message_transport_leak

Conversation

@BillCarsonFr
Copy link
Copy Markdown
Member

PostmessageTransport is calling inboundWindow.addEventListener on start, but it is never calling inboundWindow.removeEventListener.

@BillCarsonFr BillCarsonFr force-pushed the valere/fix_message_transport_leak branch from cd03f1d to 1f9ed4d Compare December 23, 2025 10:10
@sonarqubecloud
Copy link
Copy Markdown

@@ -0,0 +1,86 @@
/*
* Copyright 2025 The Matrix.org Foundation C.I.C.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌈 It's a brand new year

@@ -1,2 +1,2 @@
/*
* Copyright 2020 - 2024 The Matrix.org Foundation C.I.C.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌈 It's a brand new year!

@toger5 toger5 merged commit 480102c into master Jan 29, 2026
5 checks passed
@toger5 toger5 deleted the valere/fix_message_transport_leak branch January 29, 2026 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants