Prevent possible null dereference in ctocpp_ref_counted.h (fixes issue #3218)
This commit is contained in:
parent
28ba5c8f73
commit
099901c122
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue