Skip to content

Commit b84ad26

Browse files
committed
Remove thread in string_pool_remove_thread()
1 parent 4b6b8e2 commit b84ad26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scratch/string_pool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void string_pool_remove_thread(Thread *thread)
8181
for (StringPtr *str : strings)
8282
freeStrings.insert(std::pair<size_t, StringPtr *>(str->allocatedSize, str));
8383

84-
strings.clear();
84+
threadStrings.erase(thread);
8585

8686
if (currentThread == thread)
8787
currentThread = nullptr;

0 commit comments

Comments
 (0)