summaryrefslogtreecommitdiff
path: root/indra/llmessage
diff options
context:
space:
mode:
authorDessie Linden <dessie@lindenlab.com>2010-06-15 09:07:45 -0700
committerDessie Linden <dessie@lindenlab.com>2010-06-15 09:07:45 -0700
commit59cc637b8df9b189b2c43e2fcf588c977580f820 (patch)
treebfd5a5ec417c9581415f1fc98af6d96fbc6d1604 /indra/llmessage
parentd1ecffeb8e4b02bc5d796872e61eebf84e598983 (diff)
parentb3fc9c79f559c84893dede3ce643ac0dfd1f3d65 (diff)
Merged from viewer-release
Diffstat (limited to 'indra/llmessage')
-rw-r--r--indra/llmessage/llares.cpp4
-rw-r--r--indra/llmessage/llhttpclient.cpp1
2 files changed, 4 insertions, 1 deletions
diff --git a/indra/llmessage/llares.cpp b/indra/llmessage/llares.cpp
index 78561b37aa..5b7e5138ef 100644
--- a/indra/llmessage/llares.cpp
+++ b/indra/llmessage/llares.cpp
@@ -108,7 +108,8 @@ LLAres::LLAres() :
mInitSuccess(false),
mListener(new LLAresListener(this))
{
- if (ares_init(&chan_) != ARES_SUCCESS)
+ if (ares_library_init( ARES_LIB_INIT_ALL ) != ARES_SUCCESS ||
+ ares_init(&chan_) != ARES_SUCCESS)
{
llwarns << "Could not succesfully initialize ares!" << llendl;
return;
@@ -120,6 +121,7 @@ LLAres::LLAres() :
LLAres::~LLAres()
{
ares_destroy(chan_);
+ ares_library_cleanup();
}
void LLAres::cancel()
diff --git a/indra/llmessage/llhttpclient.cpp b/indra/llmessage/llhttpclient.cpp
index 9c2e4b5658..e8dc207114 100644
--- a/indra/llmessage/llhttpclient.cpp
+++ b/indra/llmessage/llhttpclient.cpp
@@ -199,6 +199,7 @@ namespace
fileBuffer = new U8 [fileSize];
vfile.read(fileBuffer, fileSize);
ostream.write((char*)fileBuffer, fileSize);
+ delete [] fileBuffer;
eos = true;
return STATUS_DONE;
}