Removed redundant imagedestroy calls in Image.php.
This commit is contained in:
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
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user