Prevent possible null dereference in ctocpp_ref_counted.h (fixes issue #3218)

This commit is contained in:
Sarah 2021-11-22 15:28:06 +00:00 committed by Marshall Greenblatt
parent 6eff48e9ff
commit 833612ba9a
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ class CefCToCppRefCounted : public BaseName {
bool UnderlyingHasAtLeastOneRef() const {
cef_base_ref_counted_t* base =
reinterpret_cast<cef_base_ref_counted_t*>(GetStruct());
if (!base->has_one_ref)
if (!base->has_at_least_one_ref)
return false;
return base->has_at_least_one_ref(base) ? true : false;
}