Index: src/WebRequestJsObject.cpp |
diff --git a/src/WebRequestJsObject.cpp b/src/WebRequestJsObject.cpp |
index e44e82b55d598135d7c6dd5b5421780bd926193e..48a703709053895845a5bb83e4036158b9b094f9 100644 |
--- a/src/WebRequestJsObject.cpp |
+++ b/src/WebRequestJsObject.cpp |
@@ -30,7 +30,7 @@ namespace |
{ |
public: |
WebRequestThread(AdblockPlus::JsEnginePtr jsEngine, AdblockPlus::JsValueList& arguments) |
- : jsEngine(jsEngine), url(arguments[0]->AsString()) |
+ : Thread(true), jsEngine(jsEngine), url(arguments[0]->AsString()) |
{ |
if (!url.length()) |
throw std::runtime_error("Invalid string passed as first argument to GET"); |
@@ -78,7 +78,6 @@ namespace |
AdblockPlus::JsValueList params; |
params.push_back(resultObject); |
callback->Call(params); |
- delete this; |
} |
private: |