Skip to content

Commit

Permalink
fix: memory leak in streaming excel processing
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppemilicia committed Nov 8, 2023
1 parent fb21ba7 commit 5cc4844
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jxls/src/main/java/org/jxls/area/XlsArea.java
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,10 @@ public Size applyAt(CellRef cellRef, Context context) {
transformStaticCells(cellRef, context, commandsArea);
fireAfterApplyEvent(cellRef, context);
Size finalSize = new Size(cellRange.calculateWidth(), cellRange.calculateHeight());
AreaRef newAreaRef = new AreaRef(cellRef, finalSize);
updateCellDataFinalAreaForFormulaCells(newAreaRef);
if (context.getConfig().isFormulaProcessingRequired()) {
AreaRef newAreaRef = new AreaRef(cellRef, finalSize);
updateCellDataFinalAreaForFormulaCells(newAreaRef);
}
for (CommandData commandData : commandDataList) {
commandData.resetStartCellAndSize();
}
Expand Down

0 comments on commit 5cc4844

Please sign in to comment.