WP_Image_Editor_Imagick::__destruct() WordPress Method
The WP_Image_Editor_Imagick::__destruct() method is used to release memory associated with an Imagick object.
WP_Image_Editor_Imagick::__destruct() #
Contents
Source
File: wp-includes/class-wp-image-editor-imagick.php
public function __destruct() {
if ( $this->image instanceof Imagick ) {
// We don't need the original in memory anymore.
$this->image->clear();
$this->image->destroy();
}
}
Expand full source codeCollapse full source codeView on TracView on GitHub