wordpress / latest / classes / wp_image_editor_gd / __destruct.html

WP_Image_Editor_GD::__destruct()

Source

File: wp-includes/class-wp-image-editor-gd.php. View all references

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

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_image_editor_gd/__destruct