From dbd0418971e526f9c19312b3f09bdbe2e416c73e Mon Sep 17 00:00:00 2001 From: Nyfor Date: Wed, 4 May 2016 18:48:13 +0200 Subject: [PATCH] Fix segfault on shutdown. --- libretroshare/src/util/smallobject.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libretroshare/src/util/smallobject.cc b/libretroshare/src/util/smallobject.cc index ff9beeb48..c299d8743 100644 --- a/libretroshare/src/util/smallobject.cc +++ b/libretroshare/src/util/smallobject.cc @@ -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;