-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 Tf_RegistryManagerImpl singleton instance not being deleted #3133
Conversation
Filed as internal issue #USD-9782 |
/AzurePipelines run |
Hi @moshev ! I think you meant to make this PR against the dev branch, not the release branch. That is why there are a couple of hundred extra commits in it :) Could you try to recreate it against dev please? |
Oops. Yes, of course. |
I changed the base to dev branch in this review, let me know if there's still an issue. |
Much better :) Thanks! |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
1 similar comment
Azure Pipelines successfully started running 1 pipeline(s). |
Hi @moshev , we don't think we can accept this PR. Nothing in OpenUSD currently deletes the singleton, and it would not be safe, generally, to do so, in our codebase. Of particular concern is static destruction ordering issues, as there are many other destructors that may access the registry. |
Description of Change(s)
Delete the dynamically allocated Tf_RegistryManagerImpl singleton instance when the static TfRegistryManager singleton instance which uses it is destroyed.
Fixes Issue(s)