Skip to content

Commit 513b379

Browse files
committed
fix(image): Remove NOP imagedestroy call
This is NOP since 8.0 and deprecated since 8.5 Signed-off-by: Carl Schwan <carlschwan@kde.org>
1 parent 6b6deef commit 513b379

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/private/Image.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,9 +1137,6 @@ public function resizeCopy(int $maxSize): IImage {
11371137
* Destroys the current image and resets the object
11381138
*/
11391139
public function destroy(): void {
1140-
if ($this->valid()) {
1141-
imagedestroy($this->resource);
1142-
}
11431140
$this->resource = false;
11441141
}
11451142

0 commit comments

Comments
 (0)