Skip to content

Commit c27db5f

Browse files
committed
fix(GdImage): imagedestroy is noop since PHP 8.0
Signed-off-by: Joas Schilling <[email protected]>
1 parent 56793fa commit c27db5f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/private/Image.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,6 @@ public function resize(int $maxSize): bool {
839839
return false;
840840
}
841841
$result = $this->resizeNew($maxSize);
842-
imagedestroy($this->resource);
843842
$this->resource = $result;
844843
return $this->valid();
845844
}
@@ -875,7 +874,6 @@ public function preciseResize(int $width, int $height): bool {
875874
return false;
876875
}
877876
$result = $this->preciseResizeNew($width, $height);
878-
imagedestroy($this->resource);
879877
$this->resource = $result;
880878
return $this->valid();
881879
}

0 commit comments

Comments
 (0)