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

Fix memory leak when activating cube plugin #2060

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

lcolitti
Copy link
Contributor

@lcolitti lcolitti commented Dec 8, 2023

Currently it looks like the framebuffers are allocated on activate but never released. This causes a substantial memory leak. Fix this by adding a destructor to cube_render_instance_t that releases them.

Fixes #2059

@lcolitti lcolitti force-pushed the fix-cube-leak branch 2 times, most recently from e638a73 to d9a9a88 Compare December 8, 2023 14:10
Currently it looks like the framebuffers are allocated on
activate but never released. This causes a substantial memory
leak. Fix this by adding a destructor to cube_render_instance_t
that releases them.

Fixes WayfireWM#2059
Copy link
Member

@ammen99 ammen99 left a comment

Choose a reason for hiding this comment

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

Nice catch!

@ammen99 ammen99 merged commit 1643255 into WayfireWM:master Dec 20, 2023
4 checks passed
mrsteve0924 pushed a commit to mrsteve0924/wayfire that referenced this pull request Mar 2, 2024
Currently it looks like the framebuffers are allocated on
activate but never released. This causes a substantial memory
leak. Fix this by adding a destructor to cube_render_instance_t
that releases them.

Fixes WayfireWM#2059
ammen99 pushed a commit that referenced this pull request Mar 13, 2024
Currently it looks like the framebuffers are allocated on
activate but never released. This causes a substantial memory
leak. Fix this by adding a destructor to cube_render_instance_t
that releases them.

Fixes #2059
@lcolitti lcolitti deleted the fix-cube-leak branch April 3, 2024 13:19
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.

Cube leaks memory every time it's activated
2 participants