summaryrefslogtreecommitdiff
path: root/indra/llcorehttp/examples
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2015-07-08 15:16:54 -0700
committerRider Linden <rider@lindenlab.com>2015-07-08 15:16:54 -0700
commit675b6a807435a2c36297285dc307014141dd7960 (patch)
treec36c1a467214cf0cd40c69fcfc58ff023f597ff7 /indra/llcorehttp/examples
parent75b12d79e1aeeef297182e4419df7022ede485f3 (diff)
Fix the sample.
Diffstat (limited to 'indra/llcorehttp/examples')
-rwxr-xr-xindra/llcorehttp/examples/http_texture_load.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/indra/llcorehttp/examples/http_texture_load.cpp b/indra/llcorehttp/examples/http_texture_load.cpp
index 13c9f90b2e..737282c7df 100755
--- a/indra/llcorehttp/examples/http_texture_load.cpp
+++ b/indra/llcorehttp/examples/http_texture_load.cpp
@@ -121,7 +121,7 @@ public:
int mRetriesHttp503;
int mSuccesses;
long mByteCount;
- LLCore::HttpHeaders * mHeaders;
+ LLCore::HttpHeaders::ptr_t mHeaders;
};
@@ -363,8 +363,7 @@ int main(int argc, char** argv)
// Clean up
hr->requestStopThread(NULL);
ms_sleep(1000);
- opt->release();
- opt = NULL;
+ opt.reset();
delete hr;
LLCore::HttpRequest::destroyService();
term_curl();
@@ -427,18 +426,13 @@ WorkingSet::WorkingSet()
{
mAssets.reserve(30000);
- mHeaders = new LLCore::HttpHeaders;
+ mHeaders = LLCore::HttpHeaders::ptr_t(new LLCore::HttpHeaders);
mHeaders->append("Accept", "image/x-j2c");
}
WorkingSet::~WorkingSet()
{
- if (mHeaders)
- {
- mHeaders->release();
- mHeaders = NULL;
- }
}