#if defined(ECANCELED)
errno=ECANCELED;
#endif
+ cache_info=(CacheInfo *) image->cache;
+ if (cache_info->file != -1)
+ (void) ClosePixelCacheOnDisk(cache_info);
ThrowFatalException(ResourceLimitFatalError,"TimeLimitExceeded");
}
LockSemaphoreInfo(image->semaphore);
{
status=OpenPixelCache(image,IOMode,exception);
cache_info=(CacheInfo *) image->cache;
- if (cache_info->type == DiskCache)
+ if (cache_info->file != -1)
(void) ClosePixelCacheOnDisk(cache_info);
}
}