fix(GdImage): imagedestroy is noop since PHP 8.0

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2025-12-18 08:06:19 +01:00
parent 56793fa5b8
commit c27db5fdad
No known key found for this signature in database
GPG key ID: F72FA5B49FFA96B0

View file

@ -839,7 +839,6 @@ class Image implements IImage {
return false;
}
$result = $this->resizeNew($maxSize);
imagedestroy($this->resource);
$this->resource = $result;
return $this->valid();
}
@ -875,7 +874,6 @@ class Image implements IImage {
return false;
}
$result = $this->preciseResizeNew($width, $height);
imagedestroy($this->resource);
$this->resource = $result;
return $this->valid();
}