diff --git a/include/engine/ParamInfo.hpp b/include/engine/ParamInfo.hpp index c407111b..07da7cc0 100644 --- a/include/engine/ParamInfo.hpp +++ b/include/engine/ParamInfo.hpp @@ -25,7 +25,8 @@ struct ParamInfo { ParamQuantityFactory *paramQuantityFactory = NULL; ~ParamInfo() { - delete paramQuantityFactory; + if (paramQuantityFactory) + delete paramQuantityFactory; } template