ai_review_20241024 update003 Signed-off-by heguangyao <heguangyao1@h-partners.com>

Signed-off-by: 何光耀 <heguangyao1@h-partners.com>
This commit is contained in:
何光耀 2024-10-26 09:35:14 +08:00
parent 5e1ba86171
commit 9f69e9bdac

View File

@ -34,7 +34,7 @@ WeakRefCounter::~WeakRefCounter()
void* WeakRefCounter::GetRefPtr()
{
if (refCounter_ != nullptr) {
if (refCounter_ == nullptr) {
return nullptr;
}
if ((cookie_ != nullptr) && (!refCounter_->IsRefPtrValid())) {