fixed potential memory leak due to non-virtual destructor of UnitType class