From c862dcc51f09f21190bd565bf13a324418782e45 Mon Sep 17 00:00:00 2001 From: Sarah Date: Mon, 22 Nov 2021 15:28:06 +0000 Subject: [PATCH] Prevent possible null dereference in ctocpp_ref_counted.h (fixes issue #3218) --- libcef_dll/ctocpp/ctocpp_ref_counted.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcef_dll/ctocpp/ctocpp_ref_counted.h b/libcef_dll/ctocpp/ctocpp_ref_counted.h index 91260f55d..61703bc76 100644 --- a/libcef_dll/ctocpp/ctocpp_ref_counted.h +++ b/libcef_dll/ctocpp/ctocpp_ref_counted.h @@ -89,7 +89,7 @@ class CefCToCppRefCounted : public BaseName { bool UnderlyingHasAtLeastOneRef() const { cef_base_ref_counted_t* base = reinterpret_cast(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; }