mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-01 21:56:06 -04:00
Fix segfault on shutdown.
This commit is contained in:
parent
0817aad0f9
commit
dbd0418971
1 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue