WP_Image_Editor_GD::__destruct() WordPress Method

The WP_Image_Editor_GD::__destruct() method is the destructor for the WP_Image_Editor_GD class. This class is responsible for managing the GD image library.

WP_Image_Editor_GD::__destruct() #

Contents


Source

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

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

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.