Index: extra.mk.in ================================================================== --- extra.mk.in +++ extra.mk.in @@ -9,11 +9,11 @@ OBJFWRT_SHARED_LIB = @OBJFWRT_SHARED_LIB@ OBJFWRT_STATIC_LIB = @OBJFWRT_STATIC_LIB@ OBJFWRT_FRAMEWORK = @OBJFWRT_FRAMEWORK@ OBJFWRT_LIB_MAJOR = 1 OBJFWRT_LIB_MINOR = 0 -OBJFWRT_LIB_PATCH = 0 +OBJFWRT_LIB_PATCH = 1 OBJFWRT_LIB_MAJOR_MINOR = ${OBJFWRT_LIB_MAJOR}.${OBJFWRT_LIB_MINOR} OBJFWBRIDGE_SHARED_LIB = @OBJFWBRIDGE_SHARED_LIB@ OBJFWBRIDGE_STATIC_LIB = @OBJFWBRIDGE_STATIC_LIB@ OBJFWBRIDGE_FRAMEWORK = @OBJFWBRIDGE_FRAMEWORK@ Index: src/runtime/class.m ================================================================== --- src/runtime/class.m +++ src/runtime/class.m @@ -586,12 +586,17 @@ objc_getClassList(Class *buffer, unsigned int count) { unsigned int j; objc_globalMutex_lock(); - if (buffer == NULL) - return classesCount; + if (buffer == NULL) { + count = classesCount; + + objc_globalMutex_unlock(); + + return count; + } if (classesCount < count) count = classesCount; j = 0;