diff --git a/src/spicelib/analysis/cktdest.c b/src/spicelib/analysis/cktdest.c index b2c5331f9..338ca71d8 100644 --- a/src/spicelib/analysis/cktdest.c +++ b/src/spicelib/analysis/cktdest.c @@ -17,6 +17,7 @@ Author: 1985 Thomas L. Quarles #ifdef XSPICE #include "ngspice/evtproto.h" +#include "ngspice/mif.h" #endif int @@ -77,5 +78,10 @@ CKTdestroy(CKTcircuit *ckt) nghash_free(ckt->DEVnameHash, NULL, NULL); nghash_free(ckt->MODnameHash, NULL, NULL); FREE(ckt); + +#ifdef XSPICE + g_mif_info.ckt = NULL; +#endif + return(OK); }