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