Skip to content

Commit

Permalink
- set namespaces to NULL after deleting
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Mar 27, 2023
1 parent 64de50f commit bd26abc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sbml/math/ASTNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4603,7 +4603,10 @@ void
ASTNode::unsetDeclaredNamespaces()
{
if (mNamespaces != NULL)
{
delete mNamespaces;
mNamespaces = NULL;
}
}

#endif /* __cplusplus */
Expand Down

0 comments on commit bd26abc

Please sign in to comment.