prevent crash if premature exit (without ckt)

This commit is contained in:
Holger Vogt 2020-03-04 14:46:35 +01:00
parent 1c50aeae0f
commit 027b342a9c
1 changed files with 2 additions and 1 deletions

View File

@ -243,7 +243,8 @@ com_remcirc(wordlist *wl)
#if defined(XSPICE) && defined(SIMULATOR)
/* remove event queues, if XSPICE and not nutmeg */
EVTunsetup(ft_curckt->ci_ckt);
if (ft_curckt->ci_ckt)
EVTunsetup(ft_curckt->ci_ckt);
#endif
if_cktfree(ft_curckt->ci_ckt, ft_curckt->ci_symtab);