From 741e82fc69b69a3bfc14f33f33766a89cea4df42 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Sun, 6 May 2007 22:23:52 -0400 Subject: snapshot of project "lynx", label v2-8-7dev_4d --- src/LYexit.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/LYexit.c') diff --git a/src/LYexit.c b/src/LYexit.c index 6baf2fc4..e5d06aec 100644 --- a/src/LYexit.c +++ b/src/LYexit.c @@ -1,5 +1,8 @@ /* + * $LynxId: LYexit.c,v 1.33 2007/05/06 21:41:43 tom Exp $ + * * Copyright (c) 1994, University of Kansas, All Rights Reserved + * (most of this file was rewritten in 1996 and 2004). */ #include #include @@ -164,6 +167,15 @@ void LYexit(int status) LYCloseTracelog(); #endif /* !VMS */ show_alloc(); + +#if defined(NCURSES_VERSION) && defined(LY_FIND_LEAKS) +#if defined(HAVE__NC_FREE_AND_EXIT) + _nc_free_and_exit(status); +#elif defined(HAVE__NC_FREEALL) + _nc_freeall(); +#endif +#endif /* NCURSES_VERSION */ + exit(status); } -- cgit 1.4.1-2-gfad0