Skip to content

Conversation

@deanlee
Copy link
Contributor

@deanlee deanlee commented Dec 3, 2025

Fixes memory leak where dialogs like BigDialog and BigInputDialog were not garbage collected after being closed, causing gradual memory growth.

This PR breaks circular references between dialogs and their callbacks by using weakref.ref, ensuring dialogs are properly released.

@github-actions github-actions bot added the ui label Dec 3, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Dec 3, 2025

raylib UI Preview

All Screenshots

@deanlee deanlee mentioned this pull request Dec 3, 2025
@deanlee deanlee force-pushed the ui-dialog-fix-circle-reference branch from 640be2f to fb8fae5 Compare December 3, 2025 15:51
@deanlee deanlee changed the title ui: fix dialog memory leak by removing callback reference cycles ui: fix dialog leak Dec 3, 2025
@sshane sshane closed this Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants