diff options
author | Ben <benlawson@google.com> | 2023-02-07 02:16:25 +0000 |
---|---|---|
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-02-07 02:16:25 +0000 |
commit | 038bd9501a05adcc8e1a79c1233947200455f915 (patch) | |
tree | 7251c1bd4d02e22ccf81482a241a3530500c5e72 /pw_protobuf | |
parent | 8dc71606ff17dc74c8810864bdbc5646bd5362b7 (diff) | |
download | pigweed-038bd9501a05adcc8e1a79c1233947200455f915.tar.gz |
pw_intrusive_ptr: Clear IntrusivePtr::ptr_ before calling ~T
Clear IntrusivePtr::ptr_ before calling ~T to help detect re-entrancy.
Improve comment in ~RefCountedBase about poisoning the ref count.
This comment was copied from fbl and "pre-adopt sentinal" does not
make sense here.
Bug: fxb/121334
Change-Id: I326129db71bade778073f389a129d8a6f94c8e32
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/127510
Commit-Queue: Ben Lawson <benlawson@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Diffstat (limited to 'pw_protobuf')
0 files changed, 0 insertions, 0 deletions