We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug If user selects no source, but there was an existing source before, the weak source is not released.
Expected behavior We should not leak memory!
Additional context In update function, wherever a weak source is checked, make sure to add pointer check and release if pointer already exists. e.g.:
if (color_source) { obs_weak_source_release(filter->color_source); filter->color_source = obs_source_get_weak_source(color_source); obs_source_release(color_source); } else { if (filter->color_source) { obs_weak_source_release(filter->color_source); } filter->color_source = NULL; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
If user selects no source, but there was an existing source before, the weak source is not released.
Expected behavior
We should not leak memory!
Additional context
In update function, wherever a weak source is checked, make sure to add pointer check and release if pointer already exists. e.g.:
The text was updated successfully, but these errors were encountered: