-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Recheck refs after processing fields
When dropping a class, we recheck the reference count to ensure a destructor doesn't introduce new references to a value that we're dropping. This check must be performed _after_ processing all fields and not before it, otherwise we won't be able to drop cyclic types (e.g. "Foo" stores an owned "Bar", which contains a reference back to "Foo"). Thanks to Dusty for reporting this in the Discord channel. Changelog: fixed
- Loading branch information
1 parent
007495b
commit 1e4566e
Showing
2 changed files
with
38 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters