]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/base/lib_freeall.c
ncurses 5.6 - patch 20080621
[ncurses.git] / ncurses / base / lib_freeall.c
index 4bb7ccc799958ea9e9dcb79b349c7428c88da0aa..b06123d2593fa09288fe93beeea1987dc54ca115 100644 (file)
@@ -40,7 +40,7 @@
 extern int malloc_errfd;       /* FIXME */
 #endif
 
-MODULE_ID("$Id: lib_freeall.c,v 1.46 2008/05/03 14:13:51 tom Exp $")
+MODULE_ID("$Id: lib_freeall.c,v 1.49 2008/06/21 21:26:33 tom Exp $")
 
 /*
  * Free all ncurses data.  This is used for testing only (there's no practical
@@ -61,7 +61,7 @@ _nc_freeall(void)
     }
 #endif
     if (SP != 0) {
-       _nc_lock_global(windowlist);
+       _nc_lock_global(curses);
 
        while (_nc_windows != 0) {
            bool deleted = FALSE;
@@ -93,23 +93,16 @@ _nc_freeall(void)
                break;
        }
        delscreen(SP);
-       _nc_unlock_global(windowlist);
+       _nc_unlock_global(curses);
     }
     if (cur_term != 0)
        del_curterm(cur_term);
 
-#if USE_WIDEC_SUPPORT
-    FreeIfNeeded(_nc_wacs);
-#endif
     (void) _nc_printf_string(0, empty_va);
 #ifdef TRACE
     (void) _nc_trace_buf(-1, 0);
 #endif
 
-#if BROKEN_LINKER || USE_REENTRANT
-    FreeIfNeeded(_nc_prescreen.real_acs_map);
-#endif
-
     _nc_leaks_tinfo();
 
 #if HAVE_LIBDBMALLOC