Browse Source

Don't delete NULL in ParamInfo::~ParamInfo

tags/v1.0.0
Andrew Belt 6 years ago
parent
commit
e9e112c6b3
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      include/engine/ParamInfo.hpp

+ 2
- 1
include/engine/ParamInfo.hpp View File

@@ -25,7 +25,8 @@ struct ParamInfo {
ParamQuantityFactory *paramQuantityFactory = NULL;

~ParamInfo() {
delete paramQuantityFactory;
if (paramQuantityFactory)
delete paramQuantityFactory;
}

template<class TParamQuantity = ParamQuantity>


Loading…
Cancel
Save