1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-30 01:00:06 +02:00

memory improvement

This commit is contained in:
Oliver Vogel
2014-02-26 18:47:22 +01:00
parent 18f50ac431
commit 30355d7b60

View File

@@ -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);
}