mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-21 14:50:44 +01:00
[poincare] Fix memory leak
Change-Id: I10f860eeb2fa4a7a1c6e358b208cc33f7d5d9d75
This commit is contained in:
@@ -227,7 +227,7 @@ void TermSumController::ContentView::LegendView::setSumSuperscript(float start,
|
||||
}
|
||||
|
||||
void TermSumController::ContentView::LegendView::setSequenceName(const char * sequenceName) {
|
||||
ExpressionLayout ** childrenLayouts = (ExpressionLayout **)malloc(2*sizeof(ExpressionLayout *));
|
||||
ExpressionLayout * childrenLayouts[2];
|
||||
childrenLayouts[1] = new BaselineRelativeLayout(new StringLayout(sequenceName, 1, KDText::FontSize::Small), new StringLayout("n", 1, KDText::FontSize::Small), BaselineRelativeLayout::Type::Subscript);
|
||||
childrenLayouts[0] = m_sumLayout;
|
||||
m_sumLayout = new HorizontalLayout(childrenLayouts, 2);
|
||||
|
||||
Reference in New Issue
Block a user