diff options
author | Rider Linden <rider@lindenlab.com> | 2015-10-15 10:12:58 -0700 |
---|---|---|
committer | Rider Linden <rider@lindenlab.com> | 2015-10-15 10:12:58 -0700 |
commit | 3fdd5abf96fc945bd28038cf9d5d2533c7c9564e (patch) | |
tree | 9ea5a134f6d4daf2bd681313d171f9dd1f9df813 /indra/llcorehttp | |
parent | eca891e2618581e90c79f0c141b1c920f2577efe (diff) |
MAINT-5732: Issue in texture_load example and some comments regarding NoOpDeletor
Diffstat (limited to 'indra/llcorehttp')
-rwxr-xr-x | indra/llcorehttp/examples/http_texture_load.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/indra/llcorehttp/examples/http_texture_load.cpp b/indra/llcorehttp/examples/http_texture_load.cpp index 737282c7df..b91aaf0593 100755 --- a/indra/llcorehttp/examples/http_texture_load.cpp +++ b/indra/llcorehttp/examples/http_texture_load.cpp @@ -361,7 +361,7 @@ int main(int argc, char** argv) << std::endl; // Clean up - hr->requestStopThread(NULL); + hr->requestStopThread(LLCore::HttpHandler::ptr_t()); ms_sleep(1000); opt.reset(); delete hr; @@ -435,6 +435,11 @@ WorkingSet::~WorkingSet() { } +namespace +{ + void NoOpDeletor(LLCore::HttpHandler *) + { /*NoOp*/ } +} bool WorkingSet::reload(LLCore::HttpRequest * hr, LLCore::HttpOptions::ptr_t & opt) { @@ -464,11 +469,11 @@ bool WorkingSet::reload(LLCore::HttpRequest * hr, LLCore::HttpOptions::ptr_t & o LLCore::HttpHandle handle; if (offset || length) { - handle = hr->requestGetByteRange(0, 0, buffer, offset, length, opt, mHeaders, this); + handle = hr->requestGetByteRange(0, 0, buffer, offset, length, opt, mHeaders, LLCore::HttpHandler::ptr_t(this, NoOpDeletor)); } else { - handle = hr->requestGet(0, 0, buffer, opt, mHeaders, this); + handle = hr->requestGet(0, 0, buffer, opt, mHeaders, LLCore::HttpHandler::ptr_t(this, NoOpDeletor)); } if (! handle) { |