Skip to content

Commit e013633

Browse files
committed
Remove imageDestroy from MemoryDrawing
1 parent 436d067 commit e013633

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org). This is a
1010
### Added
1111

1212
- Option for Readers to create a new blank sheet if none match LoadSheetsOnly list. [PR #4623](https://github.com/PHPOffice/PhpSpreadsheet/pull/4623) Backport of [PR #4618](https://github.com/PHPOffice/PhpSpreadsheet/pull/4618).
13+
- Remove `imagedestroy` from MemoryDrawing. Backport of [PR #4625](https://github.com/PHPOffice/PhpSpreadsheet/pull/4625).
1314

1415
### Fixed
1516

src/PhpSpreadsheet/Worksheet/MemoryDrawing.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,7 @@ public function __construct()
6262

6363
public function __destruct()
6464
{
65-
if ($this->imageResource) {
66-
@imagedestroy($this->imageResource);
67-
$this->imageResource = null;
68-
}
65+
$this->imageResource = null;
6966
$this->worksheet = null;
7067
}
7168

0 commit comments

Comments
 (0)