From: Mikael Nordfeldth Date: Wed, 4 Mar 2015 11:18:44 +0000 (+0100) Subject: Free ImageMagick object from memory when done with it X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dcfb813066d288f69a9c10b0a216a423c50bff8e;p=quix0rs-gnu-social.git Free ImageMagick object from memory when done with it --- 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; }