aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/linux/google_crashdump_uploader.cc2
-rw-r--r--src/common/linux/google_crashdump_uploader.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/common/linux/google_crashdump_uploader.cc b/src/common/linux/google_crashdump_uploader.cc
index b5f32c69..ea72a860 100644
--- a/src/common/linux/google_crashdump_uploader.cc
+++ b/src/common/linux/google_crashdump_uploader.cc
@@ -112,7 +112,7 @@ void GoogleCrashdumpUploader::Init(const string& product,
ctime_ = ctime;
email_ = email;
comments_ = comments;
- http_layer_ = http_layer;
+ http_layer_.reset(http_layer);
crash_server_ = crash_server;
proxy_host_ = proxy_host;
diff --git a/src/common/linux/google_crashdump_uploader.h b/src/common/linux/google_crashdump_uploader.h
index 5eef28b3..c8d8b8a3 100644
--- a/src/common/linux/google_crashdump_uploader.h
+++ b/src/common/linux/google_crashdump_uploader.h
@@ -31,6 +31,7 @@
#include <string>
#include <map>
+#include "common/scoped_ptr.h"
#include "common/using_std_string.h"
namespace google_breakpad {
@@ -81,7 +82,7 @@ class GoogleCrashdumpUploader {
private:
bool CheckRequiredParametersArePresent();
- LibcurlWrapper* http_layer_;
+ scoped_ptr<LibcurlWrapper> http_layer_;
string product_;
string version_;
string guid_;