From cb8f6f1a80ee6e264b58f2ceac48d947638cc785 Mon Sep 17 00:00:00 2001 From: Vulpovile Date: Sat, 4 Nov 2023 20:29:16 -0700 Subject: [PATCH] Address memory leak --- src/include/Reflection/ReflectionProperty_impl.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/include/Reflection/ReflectionProperty_impl.h b/src/include/Reflection/ReflectionProperty_impl.h index 0b13283..45d8b4f 100644 --- a/src/include/Reflection/ReflectionProperty_impl.h +++ b/src/include/Reflection/ReflectionProperty_impl.h @@ -41,4 +41,9 @@ void ReflectionProperty::dispose() { delete value; value = NULL; + if(this->extData != NULL) + { + delete extData; + extData = NULL; + } } \ No newline at end of file