WordPress at a glance
function is not described

WP_Image_Editor_GD::__destruct() public WP 1.0

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

No Hooks.

Return

Null. Nothing.

Usage

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

Code of WP_Image_Editor_GD::__destruct() WP 5.5.2

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