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

core: fix memory leak by freeing rsvg handle #77

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

Cudiph
Copy link
Contributor

@Cudiph Cudiph commented Jan 29, 2025

While I'm testing hyprcursor in my own compositor, I saw increasing memory usage when it load a new size. I can reproduce this in hyprland by repeteadly changing output scale to make hyprland loading a new size. With hyprcursor disabled in hyprland the memory is not increasing. According to rsvg docs the rsvg handle must be freed by using g_object_unref.

Copy link
Member

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

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

oopsie. Love me some C. Thanks!

@vaxerski vaxerski merged commit dcadd33 into hyprwm:main Jan 29, 2025
2 checks passed
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.

2 participants