Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AutoPtr: do 'duplicate' before 'release'
Common knowledge in reference counting is "on assignment increment first then decrement", because "just to be deleted" object could hold last reference to "just to be assigned" one. Fixes #3979
- Loading branch information