Skip to content

Commit 4f52546

Browse files
authored
Update MemoryDrawing.php
1 parent 9baabd2 commit 4f52546

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/PhpSpreadsheet/Worksheet/MemoryDrawing.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,7 @@ public function __construct()
6464

6565
public function __destruct()
6666
{
67-
if ($this->imageResource) {
68-
if (\PHP_VERSION_ID < 80000) {
69-
@imagedestroy($this->imageResource);
70-
}
71-
$this->imageResource = null;
72-
}
67+
$this->imageResource = null;
7368
$this->worksheet = null;
7469
}
7570

0 commit comments

Comments
 (0)