From 7deac509c6be2c81ecefaa50d71357f3e6916a82 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Fri, 18 Dec 2020 19:33:57 -0500 Subject: [PATCH] GTKwave updates from upstream. --- include/gtkwave/fstapi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/gtkwave/fstapi.c b/include/gtkwave/fstapi.c index fe2320da7..d311c756d 100644 --- a/include/gtkwave/fstapi.c +++ b/include/gtkwave/fstapi.c @@ -1816,11 +1816,10 @@ 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); -parent->in_pthread = 0; -pthread_mutex_unlock(&(parent->mutex)); +xc->xc_parent->in_pthread = 0; +pthread_mutex_unlock(&(xc->xc_parent->mutex)); return(NULL); }