Esempio n. 1
0
 /**
  * Destroy image handle
  *
  * @return none
  */
 function free()
 {
     if (is_resource($this->imageHandle)) {
         imagick_free($this->imageHandle);
     }
     if (is_resource($this->oldImage)) {
         imagick_free($this->oldImage);
     }
     return true;
 }
 /**
  * Destroy the target for the provided temporary object
  *
  * @param Asido_TMP &$tmp
  * @return boolean
  * @access protected
  * @abstract
  */
 function __destroy_target(&$tmp)
 {
     return imagick_free($tmp->target);
 }
Esempio n. 3
0
 public function __destruct()
 {
     if ($this->img !== null) {
         imagick_free($this->img);
     }
 }