diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-05-29 10:40:43 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-05-29 10:40:43 +0200 |
| commit | 756ee7f8dc954e27350fe5bdfbaa83b9f69780c8 (patch) | |
| tree | e0893a30710477045a5bb085cb7a27aada425c14 | |
| parent | d37f1a7381825d414e4b71c487eea509325f24c3 (diff) | |
fix: Ref.h: Don't delete NULL pointer.0.0.2e3
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
| -rw-r--r-- | dev/LibCompiler/Ref.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |
