From 43811821d640720ac509070879a85e72c099255f Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Fri, 18 Dec 2020 21:03:02 -0500 Subject: [PATCH] Backout GTKwave update 7deac509c6be2c81ecefaa50d71357f3e6916a82 --- include/gtkwave/fstapi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/gtkwave/fstapi.c b/include/gtkwave/fstapi.c index d311c756d..fe2320da7 100644 --- a/include/gtkwave/fstapi.c +++ b/include/gtkwave/fstapi.c @@ -1816,10 +1816,11 @@ free(xc->curval_mem); free(xc->valpos_mem); free(xc->vchg_mem); tmpfile_close(&xc->tchn_handle, &xc->tchn_handle_nam); +fstWriterContext* const parent = xc->xc_parent; free(xc); -xc->xc_parent->in_pthread = 0; -pthread_mutex_unlock(&(xc->xc_parent->mutex)); +parent->in_pthread = 0; +pthread_mutex_unlock(&(parent->mutex)); return(NULL); }