xxlib_deregister_handle_by_handle(handle);  #ifdef DEBUG  memset(handle, 0, sizeof(XlibRgbHandle)); #endif
xxlib_rgb_destroy_handle (XlibRgbHandle *handle){  int i;  for( i = 0 ; i < N_IMAGES ; i++ )  {    if (handle->static_image[i])      XDestroyImage(handle->static_image[i]);  }    if (handle->cmap_alloced)  {    XFreeColormap(handle->display, handle->cmap);  }    if (handle->own_gc)    XFreeGC(handle->display, handle->own_gc);    if (handle->colorcube)    free(handle->colorcube);  if (handle->colorcube_d)    free(handle->colorcube_d);    if (handle->DM_565)    free(handle->DM_565);    if (handle->stage_buf)    free(handle->stage_buf);              /* done... */  free(handle); }