Update MemoryDrawing.php

This commit is contained in:
oleibman
2025-09-01 10:59:04 -07:00
committed by GitHub
parent 9baabd2a0b
commit 4f5254606a
@@ -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;
}