Skip to content

Commit 73d50fd

Browse files
committed
Remove unneeded noop call to imagedestroy
See: https://www.php.net/manual/en/migration85.deprecated.php The imagedestroy() function has been deprecated, as GdImage objects are freed automatically.
1 parent a420f12 commit 73d50fd

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

webapp/src/Utils/Utils.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -761,9 +761,6 @@ public static function getImageThumb(string $image, int $thumbMaxSize, string $t
761761
return false;
762762
}
763763

764-
imagedestroy($orig);
765-
imagedestroy($thumb);
766-
767764
return $thumbstr;
768765
}
769766

0 commit comments

Comments
 (0)