From 869246bae845e651bb99d10f00168c91dfad51e1 Mon Sep 17 00:00:00 2001 From: Curve Date: Thu, 9 May 2024 23:05:34 +0200 Subject: [PATCH] fix(hooks): destructor on invalid state --- src/hooks.hook.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks.hook.cpp b/src/hooks.hook.cpp index 4f7c342..5be1633 100644 --- a/src/hooks.hook.cpp +++ b/src/hooks.hook.cpp @@ -46,7 +46,7 @@ namespace lime hook_base::~hook_base() { - if (!m_impl) + if (!m_impl || !m_impl->source_page) { return; }