Skip to content

Commit ea2d4b9

Browse files
committed
Avoid memory leak
When creating a spreadsheet, and writing to Xlsx, then to Xls, then reading the Xls, it would leak memory during reading. Fixes #2092
1 parent e5185ea commit ea2d4b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/PhpSpreadsheet/Worksheet/Worksheet.php

+1
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ public function __destruct()
399399
Calculation::getInstance($this->parent)->clearCalculationCacheForWorksheet($this->title);
400400

401401
$this->disconnectCells();
402+
$this->rowDimensions = [];
402403
}
403404

404405
/**

0 commit comments

Comments
 (0)