From 290472a0a3a1f31ff589eac3d5c9242f7d68bb80 Mon Sep 17 00:00:00 2001 From: sebres Date: Sun, 14 Apr 2024 13:46:23 +0000 Subject: amend to [40f13c108666fdda]: although it is no one free to see after ClockFrmScnFinalize, it is better protected in that way (and also avoid delete hash entry during table deletion). --- generic/tclClockFmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generic/tclClockFmt.c b/generic/tclClockFmt.c index 1a506a9..156e4d2 100644 --- a/generic/tclClockFmt.c +++ b/generic/tclClockFmt.c @@ -3553,8 +3553,8 @@ ClockFrmScnFinalize( ClockFmtScnStorage_GC.count = 0; #endif if (initialized) { - Tcl_DeleteHashTable(&FmtScnHashTable); initialized = 0; + Tcl_DeleteHashTable(&FmtScnHashTable); } Tcl_MutexUnlock(&ClockFmtMutex); Tcl_MutexFinalize(&ClockFmtMutex); -- cgit v0.12