diff --git a/include/transport/HTTPRequest.h b/include/transport/HTTPRequest.h index c3b25b7bd8886252ebcf154b779e6b464e18b577..d1b780e86cce43a03f87768b5dfa6471f52458a1 100644 --- a/include/transport/HTTPRequest.h +++ b/include/transport/HTTPRequest.h @@ -21,12 +21,7 @@ class HTTPRequest : public Thread { HTTPRequest(ThreadPool *tp, Type type, const std::string &url, Callback callback); HTTPRequest(Type type, const std::string &url); - virtual ~HTTPRequest() { - if(curlhandle) { - curl_easy_cleanup(curlhandle); - curlhandle = NULL; - } - } + virtual ~HTTPRequest(); void setProxy(std::string, std::string, std::string, std::string); bool execute();