/** * Image handler desctructor * * @access public * @return void */ public function __destruct() { //--------------------------------------------------------- // Remove temp file if it hasn't been saved //--------------------------------------------------------- if (file_exists($this->temp_file)) { @unlink($this->temp_file); } parent::__destruct(); }