diff --git a/Cantera/src/units.h b/Cantera/src/units.h index b36766b78..f0ea6a54f 100644 --- a/Cantera/src/units.h +++ b/Cantera/src/units.h @@ -13,9 +13,14 @@ namespace Cantera { return __u; } + static void deleteUnit() { + if (__u) { + delete __u; + __u = 0; + } + } + virtual ~Unit() { - delete __u; - __u = 0; } doublereal actEnergyToSI(string units) {