History log of /haiku/src/kits/shared/WeakReferenceable.cpp
Revision Date Author Comments
# 5d41cee8 31-Jan-2023 Augustin Cavalier <waddlesplash@gmail.com>

WeakReferenceable: Clear fUseCount when it is 1.

Otherwise, if there are remaining weak references, they could
potentially try to acquire the object and trigger a use-after-free.


# b956691c 31-Jan-2023 Augustin Cavalier <waddlesplash@gmail.com>

WeakReferenceable: Allow reference counts of either 0 or 1 during destruction.

Same rationale as for BReferenceable.

Fixes a KDL seen on boot by at least one user following prior changes.


# 7a6ef4c8 31-Jan-2023 Augustin Cavalier <waddlesplash@gmail.com>

WeakReferenceable: Add reference-count assertion just like BReferenceable.


# 1e860e07 31-Jan-2023 Augustin Cavalier <waddlesplash@gmail.com>

BPrivate::WeakReferenceable: Move implementation to a .cpp.

No functional change to the implementation, just getting it
out of a header.