diff --git a/Solver/dgConservationLaw.cpp b/Solver/dgConservationLaw.cpp index c9a71dc9fc97fbc95c7dd4b831e500835cbc0f81..ac1f2108413d8d7be5f5e69d8630e7fa3c3fa1f9 100644 --- a/Solver/dgConservationLaw.cpp +++ b/Solver/dgConservationLaw.cpp @@ -136,7 +136,7 @@ public: } } } - ~neumann_ () {if (diffusiveFlux)delete diffusiveFlux;} + ~neumann_ () {} }; dataCacheDouble *dgBoundaryCondition::newDiffusiveDirichletBC(dataCacheMap &cacheMapLeft) const { diff --git a/Solver/dgConservationLawPerfectGas.cpp b/Solver/dgConservationLawPerfectGas.cpp index fc9a1331f58719b36e9f9f7f0c911a08772a70be..fcad55ee404dd04a7c93e254ec6763f4479f36d9 100644 --- a/Solver/dgConservationLawPerfectGas.cpp +++ b/Solver/dgConservationLawPerfectGas.cpp @@ -770,7 +770,7 @@ class dgBoundaryConditionPerfectGasLaw2dWall : public dgBoundaryCondition { _value(i,3) = 0.0; } } - ~neumannNonSlip () {if (diffusiveFlux)delete diffusiveFlux;} + ~neumannNonSlip (){}; }; //-------------------------------------------------------------------------------