diff options
Diffstat (limited to 'indra/test/lliohttpserver_tut.cpp')
-rw-r--r-- | indra/test/lliohttpserver_tut.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/indra/test/lliohttpserver_tut.cpp b/indra/test/lliohttpserver_tut.cpp index 2fdc455f45..d12733dbee 100644 --- a/indra/test/lliohttpserver_tut.cpp +++ b/indra/test/lliohttpserver_tut.cpp @@ -76,12 +76,14 @@ namespace tut HTTPServiceTestData() : mResponse(NULL) { + apr_pool_create(&mPool, NULL); LLHTTPStandardServices::useServices(); LLHTTPRegistrar::buildAllServices(mRoot); mRoot.addNode("/delayed/echo", new DelayedEcho(this)); mRoot.addNode("/wire/hello", new LLHTTPNodeForPipe<WireHello>); } + apr_pool_t* mPool; LLHTTPNode mRoot; LLHTTPNode::ResponsePtr mResponse; LLSD mResult; @@ -104,11 +106,8 @@ namespace tut LLPipeStringInjector* injector = new LLPipeStringInjector(httpRequest); LLPipeStringExtractor* extractor = new LLPipeStringExtractor(); - apr_pool_t* pool; - apr_pool_create(&pool, NULL); - LLPumpIO* pump; - pump = new LLPumpIO(pool); + pump = new LLPumpIO(mPool); LLPumpIO::chain_t chain; LLSD context; @@ -131,7 +130,6 @@ namespace tut chain.clear(); delete pump; - apr_pool_destroy(pool); if(mResponse.notNull() && timeout) { |