Skip to content

Fix toast memory leaks and rendering issues - #62

Merged
meszmate merged 1 commit into
mainfrom
fix/toast-fixes-and-memory-leak
Mar 25, 2026
Merged

meszmate merged 1 commit into
mainfrom
fix/toast-fixes-and-memory-leak

Conversation

@meszmate

Copy link
Copy Markdown
Owner
  • Toast component now owns message text (dupe on push, free on dismiss)
  • Fix memory leaks in render path with proper defer frees
  • Add text truncation to respect configured min/max width
  • Flush right-side toast stacks so shorter toasts align correctly
  • Add dismissOldest method
  • Expand example with width presets, border style cycling, long toast demo
  • Add tests for text ownership, dismissOldest, alignment, and width constraints

@meszmate
meszmate merged commit 6850661 into main Mar 25, 2026
9 checks passed
@meszmate
meszmate deleted the fix/toast-fixes-and-memory-leak branch March 31, 2026 03:37
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.

1 participant