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

using a variable to store the effect object #11

Open
esshka opened this issue Sep 2, 2023 · 0 comments
Open

using a variable to store the effect object #11

esshka opened this issue Sep 2, 2023 · 0 comments

Comments

@esshka
Copy link

esshka commented Sep 2, 2023

The code does not free the memory allocated by sox_create_effect. For example, the function rb_sox_add_effect calls sox_create_effect to create an effect object, but it does not store it in a variable or pass it to a function that frees it. This can cause memory leaks. I recommend using a variable to store the effect object, and calling free on it after adding it to the chain.

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