if (! using_shm) { return; }
void shm_delete(XShmSegmentInfo *shm) {	if (! using_shm) {		return;	}#ifdef LIBVNCSERVER_HAVE_XSHM	if (shm->shmaddr != (char *) -1) {		shmdt(shm->shmaddr);	}	if (shm->shmid != -1) {		shmctl(shm->shmid, IPC_RMID, 0);	}#endif}