Skip to content

Commit

Permalink
fix(hooks): destructor on invalid state
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed May 9, 2024
1 parent ed43672 commit 869246b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks.hook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace lime

hook_base::~hook_base()
{
if (!m_impl)
if (!m_impl || !m_impl->source_page)
{
return;
}
Expand Down

0 comments on commit 869246b

Please sign in to comment.