summaryrefslogtreecommitdiff
path: root/indra/test/io.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/test/io.cpp')
-rw-r--r--indra/test/io.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/indra/test/io.cpp b/indra/test/io.cpp
index c06c1b153b..38f86b9e57 100644
--- a/indra/test/io.cpp
+++ b/indra/test/io.cpp
@@ -838,7 +838,6 @@ namespace tut
{
mChain.clear();
delete mPump;
- apr_pool_destroy(mPool);
}
};
typedef test_group<PumpAndChainTestData> PumpAndChainTestGroup;
@@ -909,8 +908,9 @@ namespace tut
pipe_and_pump_fitness()
{
- LLFrameTimer::updateFrameTime();
apr_pool_create(&mPool, NULL);
+
+ LLFrameTimer::updateFrameTime();
mPump = new LLPumpIO(mPool);
mSocket = LLSocket::create(
mPool,
@@ -922,7 +922,6 @@ namespace tut
{
mSocket.reset();
delete mPump;
- apr_pool_destroy(mPool);
}
protected:
@@ -1249,14 +1248,13 @@ namespace tut
}
};
- apr_pool_t* mPool;
LLPumpIO* mPump;
LLPumpIO::chain_t mChain;
LLSimpleRPCClient* mClient;
LLSD mResponse;
+ apr_pool_t* mPool;
rpc_server_data() :
- mPool(NULL),
mPump(NULL),
mClient(NULL)
{
@@ -1276,8 +1274,6 @@ namespace tut
mChain.clear();
delete mPump;
mPump = NULL;
- apr_pool_destroy(mPool);
- mPool = NULL;
}
void pump_loop(const LLSD& request)
{