/** * {@inheritDoc} */ public function clean() { if (is_resource($this->resource)) { imagedestroy($this->resource); } parent::clean(); }
/** * {@inheritDoc} */ public function clean() { if (file_exists($this->tmpFile)) { @unlink($this->tmpFile); } if (file_exists($this->intermediate)) { @unlink($this->intermediate); } $this->commands = []; $this->loader->clean(); parent::clean(); }