medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 7c783f87269e62b5e6d4fdda9e7e2dca86023fd9
parent 9e5e6db5b60332cf04add8d38e2932ed3067ce53
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sun Dec 11 14:40:37 +0200

Make Pool::release( NULL ) a noop

Diffstat:
pool.h | 2++
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/pool.h b/pool.h @@ -74,6 +74,8 @@ public: } void release( T * elem ) { + if( elem == NULL ) return; + u32 idx = checked_cast< u32 >( elem - elems.ptr() ); ASSERT( idx < N );