Uninit_window() will delete the temp files and free any malloced buffers. Example: uninit_window(); This call frees malloc memory and removes the temp files.