From 30355d7b60168b651f1ebf592f001d92261cea4d Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Wed, 26 Feb 2014 18:47:22 +0100 Subject: [PATCH] memory improvement --- src/Intervention/Image/Image.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Intervention/Image/Image.php b/src/Intervention/Image/Image.php index 3918f77e..61f2c378 100644 --- a/src/Intervention/Image/Image.php +++ b/src/Intervention/Image/Image.php @@ -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); }