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 f4c93195a3
commit 16da4a20fd
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 void byemesg(void);
static int confirm_quit(void); static int confirm_quit(void);
#ifdef SHARED_MODULE
extern void sh_delete_myvec(void);
extern void sh_delvecs(void);
#endif
void void
com_quit(wordlist *wl) com_quit(wordlist *wl)
@ -109,6 +114,8 @@ com_quit(wordlist *wl)
#ifdef SHARED_MODULE #ifdef SHARED_MODULE
destroy_const_plot(); destroy_const_plot();
spice_destroy_devices(); spice_destroy_devices();
sh_delete_myvec();
sh_delvecs();
#endif #endif
mc_free(); mc_free();
#ifdef SHARED_MODULE #ifdef SHARED_MODULE