diff --git a/src/frontend/runcoms2.c b/src/frontend/runcoms2.c index cb42e38ab..7f2d10826 100644 --- a/src/frontend/runcoms2.c +++ b/src/frontend/runcoms2.c @@ -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);