Skip to content

termio: free resources for discarded messages - #13579

Merged
mitchellh merged 1 commit into
ghostty-org:mainfrom
jparise:termio-message-deinit
Aug 3, 2026
Merged

mitchellh merged 1 commit into
ghostty-org:mainfrom
jparise:termio-message-deinit

Conversation

@jparise

@jparise jparise commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Messages can own allocated data or a derived config. Some paths (writer thread draining, mailbox shutdown with unread messages, and queue push failures) discarded messages without releasing those resources.

This change adds Message.deinit and uses it whenever a message is discarded.

Messages can own allocated data or a derived config. Some paths (writer
thread draining, mailbox shutdown with unread messages, and queue push
failures) discarded messages without releasing those resources.

This change adds Message.deinit and uses it whenever a message is
discarded.
@jparise
jparise requested a review from a team as a code owner August 3, 2026 19:29

@mitchellh mitchellh left a comment

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.

Good finds. 😄

@mitchellh
mitchellh enabled auto-merge August 3, 2026 19:32
@mitchellh
mitchellh merged commit a011043 into ghostty-org:main Aug 3, 2026
99 checks passed
@github-actions github-actions Bot added this to the 1.4.0 milestone Aug 3, 2026
@jparise
jparise deleted the termio-message-deinit branch August 3, 2026 20:35
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