Fix segfault on shutdown.

This commit is contained in:
Nyfor 2016-05-04 18:48:13 +02:00
parent 0817aad0f9
commit dbd0418971

View File

@ -279,10 +279,6 @@ void *SmallObject::operator new(size_t size)
#endif
RsStackMutex m(_mtx) ;
if(!_allocator._active)
return (void*)NULL;
void *p = _allocator.allocate(size) ;
#ifdef DEBUG_MEMORY
std::cerr << "new RsItem: " << p << ", size=" << size << std::endl;