We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 38d926d + d779979 commit 9dc1597Copy full SHA for 9dc1597
Common/include/option_structure.inl
@@ -1319,7 +1319,20 @@ class COptionWallSpecies : public COptionBase {
1319
this->name = option_field_name;
1320
this->m = m;
1321
}
1322
- ~COptionWallSpecies() override{};
+ ~COptionWallSpecies() override {
1323
+ if (marker) {
1324
+ delete[] marker;
1325
+ marker = nullptr;
1326
+ }
1327
+ if (field) {
1328
+ delete[] field;
1329
+ field = nullptr;
1330
1331
+ if (value) {
1332
+ delete[] value;
1333
+ value = nullptr;
1334
1335
1336
1337
string SetValue(const vector<string>& option_value) override {
1338
COptionBase::SetValue(option_value);
0 commit comments