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 ); } }
Expand full source codeCollapse full source codeView on TracView on GitHub