diff options
Diffstat (limited to 'linden/indra/llmessage/llcurl.cpp')
-rw-r--r-- | linden/indra/llmessage/llcurl.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/linden/indra/llmessage/llcurl.cpp b/linden/indra/llmessage/llcurl.cpp index 9d883a7..5eaaab0 100644 --- a/linden/indra/llmessage/llcurl.cpp +++ b/linden/indra/llmessage/llcurl.cpp | |||
@@ -342,6 +342,12 @@ namespace | |||
342 | } | 342 | } |
343 | return sMainMulti; | 343 | return sMainMulti; |
344 | } | 344 | } |
345 | |||
346 | void freeMulti() | ||
347 | { | ||
348 | delete sMainMulti; | ||
349 | sMainMulti = NULL; | ||
350 | } | ||
345 | } | 351 | } |
346 | 352 | ||
347 | void | 353 | void |
@@ -362,3 +368,8 @@ LLCurl::process() | |||
362 | mainMulti()->process(); | 368 | mainMulti()->process(); |
363 | } | 369 | } |
364 | 370 | ||
371 | void LLCurl::cleanup() | ||
372 | { | ||
373 | freeMulti(); | ||
374 | curl_global_cleanup(); | ||
375 | } | ||