コード例 #1
0
ファイル: GdDriver.php プロジェクト: rulemaker/jitimage
 /**
  * {@inheritDoc}
  */
 public function clean()
 {
     if (is_resource($this->resource)) {
         imagedestroy($this->resource);
     }
     parent::clean();
 }
コード例 #2
0
ファイル: ImDriver.php プロジェクト: rulemaker/jitimage
 /**
  * {@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();
 }