1
0
forked from aniani/vim

updated for version 7.0092

This commit is contained in:
Bram Moolenaar
2005-06-24 23:01:23 +00:00
parent c4def13f8b
commit 0a5fe2140d
14 changed files with 192 additions and 52 deletions

View File

@@ -2699,6 +2699,24 @@ mch_early_init()
#endif
}
#if defined(EXITFREE) || defined(PROTO)
void
mch_free_mem()
{
# if defined(HAVE_SIGALTSTACK) || defined(HAVE_SIGSTACK)
vim_free(signal_stack);
# endif
# if (defined(FEAT_X11) && defined(FEAT_XCLIPBOARD)) || defined(PROTO)
if (xterm_Shell != (Widget)0)
XtDestroyWidget(xterm_Shell);
if (xterm_dpy != NULL)
XtCloseDisplay(xterm_dpy);
if (app_context != (XtAppContext)NULL)
XtDestroyApplicationContext(app_context);
# endif
}
#endif
static void exit_scroll __ARGS((void));
/*
@@ -2796,6 +2814,11 @@ mch_exit(r)
if (usingNetbeans)
netbeans_send_disconnect();
#endif
#ifdef EXITFREE
free_all_mem();
#endif
exit(r);
}