When using the allow leaks hack don't even print a warning about the leak

This is only used for the test runner and in that case it just makes the test
output confusing
This commit is contained in:
Brian Anderson 2011-07-27 14:55:01 -07:00
parent 4ef1ec580a
commit 0fcd72c932

View file

@ -139,9 +139,6 @@ memory_region::~memory_region() {
if (!_hack_allow_leaks) {
_srv->fatal(msg, __FILE__, __LINE__,
"%d objects", _live_allocations);
} else {
_srv->warning(msg, __FILE__, __LINE__,
"%d objects", _live_allocations);
}
if (_synchronized) { _lock.unlock(); }
}