]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Free ImageMagick object from memory when done with it
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 4 Mar 2015 11:18:44 +0000 (12:18 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 4 Mar 2015 11:18:44 +0000 (12:18 +0100)
plugins/ImageMagick/ImageMagickPlugin.php

index e6f2e22080e82f4fb87ab8cbdcfda5fc0f6e0c62..d6d4f1a1b8f0fae1ee81105b04e4a138624e1a0c 100644 (file)
@@ -90,6 +90,7 @@ class ImageMagickPlugin extends Plugin
         $fh = fopen($outpath, 'w+');
         $success = $magick->writeImagesFile($fh);
         fclose($fh);
+        $magick->destroy();
 
         return !$success;
     }