Skip to content

Commit e5185ea

Browse files
committed
Avoid memory leak by allowing to release Style objects (bis)
Fixes #2092
1 parent 5dd00b1 commit e5185ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/PhpSpreadsheet/Spreadsheet.php

+1
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ public function __destruct()
506506
$this->disconnectWorksheets();
507507
$this->calculationEngine = null;
508508
$this->cellXfCollection = [];
509+
$this->cellStyleXfCollection = [];
509510
}
510511

511512
/**

0 commit comments

Comments
 (0)