prevent crash if premature exit (without ckt)
This commit is contained in:
parent
1c50aeae0f
commit
027b342a9c
|
|
@ -243,7 +243,8 @@ com_remcirc(wordlist *wl)
|
||||||
|
|
||||||
#if defined(XSPICE) && defined(SIMULATOR)
|
#if defined(XSPICE) && defined(SIMULATOR)
|
||||||
/* remove event queues, if XSPICE and not nutmeg */
|
/* remove event queues, if XSPICE and not nutmeg */
|
||||||
EVTunsetup(ft_curckt->ci_ckt);
|
if (ft_curckt->ci_ckt)
|
||||||
|
EVTunsetup(ft_curckt->ci_ckt);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if_cktfree(ft_curckt->ci_ckt, ft_curckt->ci_symtab);
|
if_cktfree(ft_curckt->ci_ckt, ft_curckt->ci_symtab);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue