summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/backends/oauth2/oauth2.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backends/oauth2/oauth2.cpp b/src/backends/oauth2/oauth2.cpp
index b19735fa..47d0bc18 100644
--- a/src/backends/oauth2/oauth2.cpp
+++ b/src/backends/oauth2/oauth2.cpp
@@ -23,6 +23,7 @@
#include <syncevo/GLibSupport.h>
#include <syncevo/GVariantSupport.h>
#include <syncevo/SoupTransportAgent.h>
+#include <syncevo/CurlTransportAgent.h>
#include <json.h>
#include <syncevo/declarations.h>
@@ -56,7 +57,8 @@ public:
#ifdef ENABLE_LIBSOUP
m_agent = SoupTransportAgent::create(static_cast<GMainLoop *>(NULL));
#elif defined(ENABLE_LIBCURL)
- m_agent = new CurlTransportAgent();
+ boost::shared_ptr<CurlTransportAgent> agent(new CurlTransportAgent());
+ m_agent = agent;
#endif
}