From 00407eb96fc6a3b00bf72fa50af0ac74c2249eee Mon Sep 17 00:00:00 2001 From: Lucian Smith Date: Wed, 11 Sep 2024 20:41:42 -0700 Subject: [PATCH] Fix RenderGroup leaks. --- src/sbml/packages/render/sbml/Style.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sbml/packages/render/sbml/Style.cpp b/src/sbml/packages/render/sbml/Style.cpp index e126f28905..84db2c7344 100644 --- a/src/sbml/packages/render/sbml/Style.cpp +++ b/src/sbml/packages/render/sbml/Style.cpp @@ -601,6 +601,7 @@ Style::createGroup() delete renderns; this->setGroup(g); + delete g; connectToChild(); @@ -1280,6 +1281,7 @@ Style::createObject(XMLInputStream& stream) RenderGroup* g = new RenderGroup(renderns); g->setElementName(name); setGroup(g); + delete g; obj = &mGroup; }