Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/GlobalJsObject.cpp

Issue 29361582: Issue 4613 - fix leak of Thread (Closed)
Patch Set: Created Nov. 3, 2016, 10:58 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/GlobalJsObject.cpp
diff --git a/src/GlobalJsObject.cpp b/src/GlobalJsObject.cpp
index dd417b945e43d1c6e9a33b06c6e1f2db93f81490..ab10d4df43df0be6095da3e61ac6035d4878f136 100644
--- a/src/GlobalJsObject.cpp
+++ b/src/GlobalJsObject.cpp
@@ -37,6 +37,7 @@ namespace
{
public:
TimeoutThread(JsValueList& arguments)
+ : Thread(true)
{
if (arguments.size() < 2)
throw std::runtime_error("setTimeout requires at least 2 parameters");

Powered by Google App Engine
This is Rietveld