mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-29 18:49:52 +01:00
Prevent possible null dereference in ctocpp_ref_counted.h (fixes issue #3218)
This commit is contained in:
parent
6eff48e9ff
commit
833612ba9a
@ -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…
x
Reference in New Issue
Block a user