Skip to content

Commit

Permalink
This is a hack fix for issue 320, but it works.
Browse files Browse the repository at this point in the history
This fixes the bug in Antimony where somehow the order of deletion causes a crash here at the end of the program.  It wouldn't work if I actually used mModelValues, but I don't, and figuring out the actual cause is too much work, sadly.
  • Loading branch information
luciansmith authored and fbergmann committed Nov 22, 2024
1 parent e61498f commit 72ba561
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sbml/SBMLTransforms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,9 @@ SBMLTransforms::clearComponentValues(const Model* m)
}

// otherwise remove only specific set
mModelValues.erase(m);
if (!mModelValues.empty()) {
mModelValues.erase(m);
}
}


Expand Down

0 comments on commit 72ba561

Please sign in to comment.