Skip to content

Commit

Permalink
Fix RenderGroup leaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
luciansmith authored and fbergmann committed Nov 22, 2024
1 parent e9cb188 commit bd3e89b
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 bd3e89b

Please sign in to comment.