From eecbcff6af6775f3722a8de1e237c7edf2c03d3d Mon Sep 17 00:00:00 2001 From: Itamar Date: Fri, 25 Jun 2021 12:34:29 +0300 Subject: [PATCH] AK: Add NOTE about VERIFY in Function::clear --- AK/Function.h | 1 + 1 file changed, 1 insertion(+) diff --git a/AK/Function.h b/AK/Function.h index 612a1906e81..e553bd5e86e 100644 --- a/AK/Function.h +++ b/AK/Function.h @@ -189,6 +189,7 @@ private: void clear(bool may_defer = true) { bool called_from_inside_function = m_call_nesting_level > 0; + // NOTE: This VERIFY could fail because a Function is destroyed from within itself. VERIFY(may_defer || !called_from_inside_function); if (called_from_inside_function && may_defer) { m_deferred_clear = true;