summaryrefslogtreecommitdiffhomepage
path: root/dev/LibCompiler/Ref.h
diff options
context:
space:
mode:
Diffstat (limited to 'dev/LibCompiler/Ref.h')
-rw-r--r--dev/LibCompiler/Ref.h2
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;
}
}