From dcfb813066d288f69a9c10b0a216a423c50bff8e Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 4 Mar 2015 12:18:44 +0100 Subject: [PATCH] Free ImageMagick object from memory when done with it --- plugins/ImageMagick/ImageMagickPlugin.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/ImageMagick/ImageMagickPlugin.php b/plugins/ImageMagick/ImageMagickPlugin.php index e6f2e22080..d6d4f1a1b8 100644 --- a/plugins/ImageMagick/ImageMagickPlugin.php +++ b/plugins/ImageMagick/ImageMagickPlugin.php @@ -90,6 +90,7 @@ class ImageMagickPlugin extends Plugin $fh = fopen($outpath, 'w+'); $success = $magick->writeImagesFile($fh); fclose($fh); + $magick->destroy(); return !$success; } -- 2.39.5