Skip to content

Commit

Permalink
Avoid memory leak by allowing to release Style objects (bis)
Browse files Browse the repository at this point in the history
Fixes #2092
  • Loading branch information
PowerKiKi committed May 16, 2021
1 parent 5dd00b1 commit e5185ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/PhpSpreadsheet/Spreadsheet.php
Expand Up @@ -506,6 +506,7 @@ public function __destruct()
$this->disconnectWorksheets();
$this->calculationEngine = null;
$this->cellXfCollection = [];
$this->cellStyleXfCollection = [];
}

/**
Expand Down

0 comments on commit e5185ea

Please sign in to comment.