Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KbdRc and SeatRc are leaked #1422

Open
ids1024 opened this issue May 7, 2024 · 2 comments
Open

KbdRc and SeatRc are leaked #1422

ids1024 opened this issue May 7, 2024 · 2 comments

Comments

@ids1024
Copy link
Member

ids1024 commented May 7, 2024

Looking at valgrind logs of anvil, it seems allocations that are part of KbdRc are never freed when exiting cleanly. It seems Drop is never called on KbdRc or SeatRc.

I think known_kbds needs to use Weak to avoid a reference cycle. I'm still unsure what is preventing SeatRc from being freed...

@ids1024
Copy link
Member Author

ids1024 commented May 7, 2024

Looks like SeatGlobalData and SeatUserData never get dropped.

@ids1024
Copy link
Member Author

ids1024 commented May 7, 2024

Or I guess SeatUserData is freed when a client exist before the compositor, but not when the compositor exits with a window open?

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

No branches or pull requests

1 participant