@@ -62,13 +62,17 @@ [_arguments addObject: data]; } typeEncoding = [_methodSignature methodReturnType]; typeSize = of_sizeof_type_encoding(typeEncoding); - _returnValue = [[OFMutableData alloc] initWithItemSize: typeSize - capacity: 1]; - [_returnValue increaseCountBy: 1]; + + if (typeSize > 0) { + _returnValue = [[OFMutableData alloc] + initWithItemSize: typeSize + capacity: 1]; + [_returnValue increaseCountBy: 1]; + } objc_autoreleasePoolPop(pool); } @catch (id e) { [self release]; @throw e;