From 756ee7f8dc954e27350fe5bdfbaa83b9f69780c8 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 29 May 2025 10:40:43 +0200 Subject: fix: Ref.h: Don't delete NULL pointer. Signed-off-by: Amlal El Mahrouss --- dev/LibCompiler/Ref.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/LibCompiler/Ref.h b/dev/LibCompiler/Ref.h index ffc11c0..60eafc3 100644 --- a/dev/LibCompiler/Ref.h +++ b/dev/LibCompiler/Ref.h @@ -22,7 +22,7 @@ class Ref final { ~Ref() { if (m_Strong) { - delete m_Class; + if (m_Class) delete m_Class; m_Class = nullptr; } } -- cgit v1.2.3