From b62c37ea58482e0fc351659677c17f79c11557eb Mon Sep 17 00:00:00 2001 From: Cary R Date: Sun, 20 Dec 2020 12:51:14 -0800 Subject: [PATCH] Update to the latest GTKWave files --- vpi/fstapi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vpi/fstapi.c b/vpi/fstapi.c index d311c756d..3cb4652c9 100644 --- a/vpi/fstapi.c +++ b/vpi/fstapi.c @@ -1806,6 +1806,7 @@ xc->already_in_flush = 0; static void *fstWriterFlushContextPrivate1(void *ctx) { struct fstWriterContext *xc = (struct fstWriterContext *)ctx; +struct fstWriterContext *xc_parent; pthread_mutex_lock(&(xc->xc_parent->mutex)); fstWriterFlushContextPrivate2(xc); @@ -1816,10 +1817,11 @@ free(xc->curval_mem); free(xc->valpos_mem); free(xc->vchg_mem); tmpfile_close(&xc->tchn_handle, &xc->tchn_handle_nam); +xc_parent = xc->xc_parent; free(xc); -xc->xc_parent->in_pthread = 0; -pthread_mutex_unlock(&(xc->xc_parent->mutex)); +xc_parent->in_pthread = 0; +pthread_mutex_unlock(&(xc_parent->mutex)); return(NULL); }