mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-06 05:38:51 -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
|
#endif
|
||||||
|
|
||||||
RsStackMutex m(_mtx) ;
|
RsStackMutex m(_mtx) ;
|
||||||
|
|
||||||
if(!_allocator._active)
|
|
||||||
return (void*)NULL;
|
|
||||||
|
|
||||||
void *p = _allocator.allocate(size) ;
|
void *p = _allocator.allocate(size) ;
|
||||||
#ifdef DEBUG_MEMORY
|
#ifdef DEBUG_MEMORY
|
||||||
std::cerr << "new RsItem: " << p << ", size=" << size << std::endl;
|
std::cerr << "new RsItem: " << p << ", size=" << size << std::endl;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue