From ec083630bc77ee79fb4d5f501ce55d333dea9d39 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 upon 'quit' --- src/frontend/misccoms.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/frontend/misccoms.c b/src/frontend/misccoms.c index 04f3f30f4..50199170c 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) @@ -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