00001 /*@A (C) 1992 Allen I. Holub */ 00002 #include "cur.h" 00003 00004 void delwin(WINDOW * win ) 00005 { 00006 /* Copy the saved image back onto the screen and free the memory used for 00007 * the buffer. 00008 */ 00009 00010 if( win->image ) 00011 { 00012 restore ( (SBUF *) win->image ); 00013 freescr ( (SBUF *) win->image ); 00014 } 00015 free( win ); 00016 }