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

Added a registry of groups to protect access from a callback #95

Merged
merged 2 commits into from
Jul 2, 2024

Conversation

maxsharabayko
Copy link
Owner

@maxsharabayko maxsharabayko commented Jul 1, 2024

When a connection or listen callback is called by the SRT library, a pointer to an application's group object is passed via the opaq argument. However, the object may have been destroyed by the time the callback is called.
This PR adds a global registry of group objects managed by the application so that a destroyed object is not de-referenced.

@maxsharabayko maxsharabayko merged commit e7551b8 into master Jul 2, 2024
6 checks passed
@maxsharabayko maxsharabayko deleted the hotfix/protect-group-callback branch July 2, 2024 14:49
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.

1 participant