mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-13 11:36:24 +00:00
Update MemoryDrawing.php
This commit is contained in:
@@ -64,12 +64,7 @@ class MemoryDrawing extends BaseDrawing
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
if ($this->imageResource) {
|
||||
if (\PHP_VERSION_ID < 80000) {
|
||||
@imagedestroy($this->imageResource);
|
||||
}
|
||||
$this->imageResource = null;
|
||||
}
|
||||
$this->imageResource = null;
|
||||
$this->worksheet = null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user