mod/maxgui.mod/fltkmaxgui.mod/src/Fl_Shared_Image.cxx
void Fl_Shared_Image::release() {
  int	i;	// Looping var...

  refcount_ --;
  if (refcount_ > 0) return;

  for (i = 0; i < num_images_; i ++)
    if (images_[i] == this) {
      num_images_ --;

      if (i < num_images_) {
        memmove(images_ + i, images_ + i + 1,
               (num_images_ - i) * sizeof(Fl_Shared_Image *));
      }

      break;
    }

  delete this;

  if (num_images_ == 0 && images_) {
    delete[] images_;

    images_       = 0;
    alloc_images_ = 0;
  }
}
//
/** 
  Releases and possibly destroys (if refcount <=0) a shared image. 
  In the latter case, it will reorganize the shared image array so that no hole will occur.
*/
Releases and possibly destroys (if refcount <=0) a shared image.
In the latter case, it will reorganize the shared image array so that no hole will occur.
Releases and possibly destroys ( if refcount < = 0 ) a shared image . In the latter case it will reorganize the shared image array so that no hole will occur .
void Fl_Shared_Image::release() {
  int	i;	
  refcount_ --;
  if (refcount_ > 0) return;
  for (i = 0; i < num_images_; i ++)
    if (images_[i] == this) {
      num_images_ --;
      if (i < num_images_) {
        memmove(images_ + i, images_ + i + 1,
               (num_images_ - i) * sizeof(Fl_Shared_Image *));
      }
      break;
    }
  delete this;
  if (num_images_ == 0 && images_) {
    delete[] images_;
    images_       = 0;
    alloc_images_ = 0;
  }
}
void Fl_Shared_Image :: release ( ) { int i ; refcount_ -- ; if ( refcount_ > 0 ) return ; for ( i = 0 ; i < num_images_ ; i ++ ) if ( images_ [ i ] == this ) { num_images_ -- ; if ( i < num_images_ ) { memmove ( images_ + i , images_ + i + 1 , ( num_images_ - i ) * sizeof ( Fl_Shared_Image * ) ) ; } break ; } delete this ; if ( num_images_ == 0 && images_ ) { delete [ ] images_ ; images_ = 0 ; alloc_images_ = 0 ; } }
Releases and possibly destroys (if refcount <=0) a shared image.
Releases and possibly destroys ( if refcount < = 0 ) a shared image .
// Looping var...