Followup to 414201, get rid of some release calls

This commit is contained in:
vladimir%pobox.com 2008-03-20 23:22:41 +00:00
Родитель ba9d511659
Коммит 6933b5b4f3
1 изменённых файлов: 0 добавлений и 3 удалений

Просмотреть файл

@ -338,14 +338,11 @@ nsresult nsInternetConfigService::FillMIMEInfoForICEntry(ICMapEntry& entry, nsIM
NSURLFileTypeMappings *map = [NSURLFileTypeMappings sharedMappings];
NSString *mimeStr = [NSString stringWithCString:mimetype.get() encoding:NSASCIIStringEncoding];
NSString *realExtension = map ? [map preferredExtensionForMIMEType:mimeStr] : NULL;
[mimeStr release];
if (realExtension) {
temp.Assign([realExtension cStringUsingEncoding:NSASCIIStringEncoding]);
info->AppendExtension(temp);
[realExtension release];
} else {
// convert entry.extension which is a Str255
// don't forget to remove the '.' in front of the file extension....