misccoms.c, call function to delete some structures in sharedspice.c, mc_deck in inpc.c upon 'quit'

This commit is contained in:
h_vogt 2016-07-14 00:02:23 +02:00 committed by rlar
parent 39dbc4df1e
commit 2232bcab05
1 changed files with 8 additions and 0 deletions

View File

@ -36,6 +36,11 @@ extern void spice_destroy_devices(void); /* FIXME need a better place */
static void byemesg(void);
static int confirm_quit(void);
#ifdef SHARED_MODULE
extern void sh_delete_myvec(void);
extern void sh_delvecs(void);
#endif
void
com_quit(wordlist *wl)
@ -109,7 +114,10 @@ com_quit(wordlist *wl)
#ifdef SHARED_MODULE
destroy_const_plot();
spice_destroy_devices();
sh_delete_myvec();
sh_delvecs();
#endif
mc_free();
#ifdef SHARED_MODULE
/* add 1000 to notify that we exit from 'quit' */
controlled_exit(1000 + exitcode);