Free ImageMagick object from memory when done with it

This commit is contained in:
Mikael Nordfeldth 2015-03-04 12:18:44 +01:00
parent fe9dc8e901
commit dcfb813066

View File

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