mirror of
https://github.com/Intervention/image.git
synced 2025-08-30 17:19:50 +02:00
memory improvement
This commit is contained in:
@@ -1404,6 +1404,7 @@ class Image
|
||||
public function reset()
|
||||
{
|
||||
if ($this->isImageResource($this->original)) {
|
||||
is_resource($this->resource) ? imagedestroy($this->resource) : null;
|
||||
$this->initFromResource($this->original);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user