diff options
Diffstat (limited to 'indra/llcorehttp/tests')
| -rw-r--r-- | indra/llcorehttp/tests/llcorehttp_test.cpp | 6 | ||||
| -rw-r--r-- | indra/llcorehttp/tests/test_allocator.cpp | 10 | 
2 files changed, 12 insertions, 4 deletions
| diff --git a/indra/llcorehttp/tests/llcorehttp_test.cpp b/indra/llcorehttp/tests/llcorehttp_test.cpp index ad596d61cc..92f16be8fd 100644 --- a/indra/llcorehttp/tests/llcorehttp_test.cpp +++ b/indra/llcorehttp/tests/llcorehttp_test.cpp @@ -27,8 +27,10 @@  #include <iostream> -#include <tut/tut.hpp> -#include <tut/tut_reporter.hpp> +// These are not the right way in viewer for some reason: +// #include <tut/tut.hpp> +// #include <tut/tut_reporter.hpp> +#include "../test/lltut.h"  #include <curl/curl.h> diff --git a/indra/llcorehttp/tests/test_allocator.cpp b/indra/llcorehttp/tests/test_allocator.cpp index 926de0a208..ea12dc58eb 100644 --- a/indra/llcorehttp/tests/test_allocator.cpp +++ b/indra/llcorehttp/tests/test_allocator.cpp @@ -166,13 +166,19 @@ void * operator new[](std::size_t size) THROW_BAD_ALLOC()  void operator delete(void * p) THROW_NOTHING()  { -	FreeMem( p ); +	if (p) +	{ +		FreeMem( p ); +	}  }  void operator delete[](void * p) THROW_NOTHING()  { -	FreeMem( p ); +	if (p) +	{ +		FreeMem( p ); +	}  } | 
