Prevent possible null dereference in ctocpp_ref_counted.h (fixes issue #3218)
This commit is contained in:
parent
7111d35d3c
commit
c862dcc51f
|
@ -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