return(status == 0 ? MagickFalse : MagickTrue);
}
}
- RelinquishMagickResource(MemoryResource,cache_info->length);
}
/*
Create pixel cache on disk.
return(status == 0 ? MagickFalse : MagickTrue);
}
}
- RelinquishMagickResource(DiskResource,cache_info->length);
+ cache_info->type=UndefinedCache;
(void) ThrowMagickException(exception,GetMagickModule(),CacheError,
"CacheResourcesExhausted","`%s'",image->filename);
return(MagickFalse);
return(status == 0 ? MagickFalse : MagickTrue);
}
}
- RelinquishMagickResource(MapResource,cache_info->length);
}
status=MagickTrue;
if ((source_info.storage_class != UndefinedClass) && (mode != ReadMode))
{
(void) FormatMagickSize(size,MagickFalse,(const char *) NULL,
MagickFormatExtent,resource_request);
- (void) FormatMagickSize((MagickSizeType) resource_info.area,MagickFalse,
- (const char *) NULL,MagickFormatExtent,resource_current);
+ (void) FormatMagickSize((MagickSizeType) resource_info.area,
+ MagickFalse,(const char *) NULL,MagickFormatExtent,
+ resource_current);
(void) FormatMagickSize(resource_info.area_limit,MagickFalse,
(const char *) NULL,MagickFormatExtent,resource_limit);
}
{
(void) FormatMagickSize(size,MagickFalse,"P",MagickFormatExtent,
resource_request);
- (void) FormatMagickSize((MagickSizeType) resource_info.width,MagickFalse,
- "P",MagickFormatExtent,resource_current);
+ (void) FormatMagickSize((MagickSizeType) resource_info.width,
+ MagickFalse,"P",MagickFormatExtent,resource_current);
(void) FormatMagickSize(resource_info.width_limit,MagickFalse,"P",
MagickFormatExtent,resource_limit);
}
}
option=GetImageOption(image_info,"jpeg:colors");
if (option != (const char *) NULL)
- if (AcquireImageColormap(image,StringToUnsignedLong(option),exception)
- == MagickFalse)
+ if (AcquireImageColormap(image,StringToUnsignedLong(option),exception) == MagickFalse)
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
if ((jpeg_info.output_components == 1) && (jpeg_info.quantize_colors == 0))
{
Perform optimization only if available memory resources permit it.
*/
status=AcquireMagickResource(MemoryResource,length);
- RelinquishMagickResource(MemoryResource,length);
jpeg_info.optimize_coding=status == MagickFalse ? FALSE : TRUE;
}
}