Contao\GdImage::__destruct PHP Method

__destruct() public method

Destroy the GD resource to free memory
public __destruct ( )
    public function __destruct()
    {
        if (is_resource($this->gdResource)) {
            imagedestroy($this->gdResource);
        }
    }