Skip to content

Commit 306ffb5

Browse files
committed
2 parents b88e1f5 + 14fcb45 commit 306ffb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FastCoder/FastCoder.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ static id FCReadNSCodedObject(__unsafe_unretained FCNSDecoder *decoder)
885885
NSString *key = FCReadObject(decoder);
886886
decoder->_properties[key] = object;
887887
}
888-
id object = [[NSClassFromString(className) alloc] initWithCoder:decoder];
888+
id object = FC_AUTORELEASE([[NSClassFromString(className) alloc] initWithCoder:decoder]);
889889
[decoder->_propertyDictionaryPool addObject:decoder->_properties];
890890
decoder->_properties = oldProperties;
891891
FCCacheParsedObject(object, decoder->_objectCache);
@@ -2511,7 +2511,7 @@ static id FCReadNSCodedObject_2_3(__unsafe_unretained FCNSDecoder *decoder)
25112511
NSString *key = FCReadObject_2_3(decoder);
25122512
decoder->_properties[key] = object;
25132513
}
2514-
id object = [[NSClassFromString(className) alloc] initWithCoder:decoder];
2514+
id object = FC_AUTORELEASE([[NSClassFromString(className) alloc] initWithCoder:decoder]);
25152515
decoder->_properties = oldProperties;
25162516
FCCacheParsedObject(object, decoder->_objectCache);
25172517
return object;

0 commit comments

Comments
 (0)