Skip to content

Commit 06dfee1

Browse files
committed
Thread: Free internal strings after killing/resetting
1 parent 1d3c37d commit 06dfee1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/engine/thread.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,14 @@ bool Thread::runPredicate()
8585
void Thread::kill()
8686
{
8787
impl->code->kill(impl->executionContext.get());
88+
string_pool_clear_thread(this);
8889
}
8990

9091
/*! Resets the script to run from the start. */
9192
void Thread::reset()
9293
{
9394
impl->code->reset(impl->executionContext.get());
95+
string_pool_clear_thread(this);
9496
}
9597

9698
/*! Returns true if the script is stopped or finished. */

0 commit comments

Comments
 (0)