forked from GNUsocial/gnu-social
Free ImageMagick object from memory when done with it
This commit is contained in:
parent
fe9dc8e901
commit
dcfb813066
@ -90,6 +90,7 @@ class ImageMagickPlugin extends Plugin
|
|||||||
$fh = fopen($outpath, 'w+');
|
$fh = fopen($outpath, 'w+');
|
||||||
$success = $magick->writeImagesFile($fh);
|
$success = $magick->writeImagesFile($fh);
|
||||||
fclose($fh);
|
fclose($fh);
|
||||||
|
$magick->destroy();
|
||||||
|
|
||||||
return !$success;
|
return !$success;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user