WordPress at a glance
function is not described

WP_Image_Editor_Imagick::__destruct() public WP 1.0

{} It's a method of the class: WP_Image_Editor_Imagick{}

No Hooks.

Return

null. Nothing.

Usage

$WP_Image_Editor_Imagick = new WP_Image_Editor_Imagick();
$WP_Image_Editor_Imagick->__destruct();

Code of WP_Image_Editor_Imagick::__destruct() WP 5.7.2

<?php
public function __destruct() {
	if ( $this->image instanceof Imagick ) {
		// We don't need the original in memory anymore.
		$this->image->clear();
		$this->image->destroy();
	}
}