diff options
Diffstat (limited to 'indra')
-rwxr-xr-x | indra/llcorehttp/_httpoperation.h | 2 | ||||
-rwxr-xr-x | indra/llcorehttp/httprequest.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/indra/llcorehttp/_httpoperation.h b/indra/llcorehttp/_httpoperation.h index 417bdc7c50..1a75921c09 100755 --- a/indra/llcorehttp/_httpoperation.h +++ b/indra/llcorehttp/_httpoperation.h @@ -162,7 +162,7 @@ public: ptr_t ptr = findByHandle(handle); if (!ptr) return boost::shared_ptr< OPT >(); - return boost::dynamic_pointer_cast<HttpOpRequest>(ptr); + return boost::dynamic_pointer_cast< OPT >(ptr); } protected: diff --git a/indra/llcorehttp/httprequest.cpp b/indra/llcorehttp/httprequest.cpp index 1c7994927b..e09f0c3b18 100755 --- a/indra/llcorehttp/httprequest.cpp +++ b/indra/llcorehttp/httprequest.cpp @@ -443,13 +443,13 @@ HttpStatus HttpRequest::update(long usecs) ++iter) { // Swap op pointer for NULL; - op = *iter; *iter = NULL; + op.reset(); + op.swap(*iter); // Process operation op->visitNotifier(this); // We're done with the operation - op.reset(); } } } |