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

This commit is contained in:
h_vogt 2016-07-14 00:02:23 +02:00 committed by rlar
parent 4875ae9e7d
commit ec083630bc
1 changed files with 7 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)
@ -114,6 +119,8 @@ com_quit(wordlist *wl)
#ifdef SHARED_MODULE
destroy_const_plot();
spice_destroy_devices();
sh_delete_myvec();
sh_delvecs();
#endif
mc_free();
#ifdef SHARED_MODULE