Removed redundant imagedestroy calls in Image.php.

This commit is contained in:
kor-elf committed 2026-10-23 20:41:38 +05:00
1 parent e1fe94f920
commit f7810819e6
1 file changed
-5
@@ -43,7 +43,6 @@ final class Image implements ImageContract
src_width: $backgroundWidth,
src_height: $backgroundHeight
);
imagedestroy($background);
return $this;
}
@@ -104,10 +103,6 @@ final class Image implements ImageContract
);
}
public function __destruct() {
imagedestroy($this->image);
}
/**
* @throws CaptchaException
*/