Skip to content

Commit 9d61deb

Browse files
authored
Add imagedestroy to save method
1 parent 4dee915 commit 9d61deb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/ImageResize.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ public function save($filename, $image_type = null, $quality = null, $permission
200200
if ($permissions) {
201201
chmod($filename, $permissions);
202202
}
203+
204+
imagedestroy($dest_image);
203205

204206
return $this;
205207
}

0 commit comments

Comments
 (0)