]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/tinfo/entries.c
ncurses 6.0 - patch 20170819
[ncurses.git] / ncurses / tinfo / entries.c
index 12674591bdd6d163771c9527dca28c796f3f62b0..998205d092d0bf5c5927de723da0861a7edbf5d0 100644 (file)
@@ -37,7 +37,7 @@
 
 #include <tic.h>
 
-MODULE_ID("$Id: entries.c,v 1.23 2017/04/13 22:39:57 tom Exp $")
+MODULE_ID("$Id: entries.c,v 1.26 2017/08/04 09:01:39 tom Exp $")
 
 /****************************************************************************
  *
@@ -120,13 +120,14 @@ _nc_leaks_tinfo(void)
 
     T((T_CALLED("_nc_free_tinfo()")));
 #if NO_LEAKS
+    _nc_globals.leak_checking = TRUE;
     _nc_free_tparm();
     _nc_tgetent_leaks();
 
     if (TerminalOf(CURRENT_SCREEN) != 0) {
        del_curterm(TerminalOf(CURRENT_SCREEN));
     }
-    free(_nc_prescreen.allocated);
+    _nc_forget_prescr();
 
     _nc_comp_captab_leaks();
     _nc_free_entries(_nc_head);