Skip to content

Commit

Permalink
Fix RenderGroup leaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
luciansmith committed Sep 12, 2024
1 parent 45eab94 commit 00407eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sbml/packages/render/sbml/Style.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,7 @@ Style::createGroup()

delete renderns;
this->setGroup(g);
delete g;

connectToChild();

Expand Down Expand Up @@ -1280,6 +1281,7 @@ Style::createObject(XMLInputStream& stream)
RenderGroup* g = new RenderGroup(renderns);
g->setElementName(name);
setGroup(g);
delete g;
obj = &mGroup;
}

Expand Down

0 comments on commit 00407eb

Please sign in to comment.