From 2232bcab0590a00b926259e00be1a4bc80f25cc5 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Thu, 14 Jul 2016 00:02:23 +0200 Subject: [PATCH] misccoms.c, call function to delete some structures in sharedspice.c, mc_deck in inpc.c upon 'quit' --- src/frontend/misccoms.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/frontend/misccoms.c b/src/frontend/misccoms.c index 4108b712f..37704d0f2 100644 --- a/src/frontend/misccoms.c +++ b/src/frontend/misccoms.c @@ -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);