diff options
author | Rider Linden <rider@lindenlab.com> | 2015-07-08 15:16:54 -0700 |
---|---|---|
committer | Rider Linden <rider@lindenlab.com> | 2015-07-08 15:16:54 -0700 |
commit | 675b6a807435a2c36297285dc307014141dd7960 (patch) | |
tree | c36c1a467214cf0cd40c69fcfc58ff023f597ff7 /indra/llcorehttp/examples | |
parent | 75b12d79e1aeeef297182e4419df7022ede485f3 (diff) |
Fix the sample.
Diffstat (limited to 'indra/llcorehttp/examples')
-rwxr-xr-x | indra/llcorehttp/examples/http_texture_load.cpp | 12 |
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; - } } |