[mapserver-commits] r12356 - trunk/mapserver/mapcache/src
svn at osgeo.org
svn at osgeo.org
Fri Aug 26 07:19:19 EDT 2011
Author: tbonfort
Date: 2011-08-26 04:19:18 -0700 (Fri, 26 Aug 2011)
New Revision: 12356
Modified:
trunk/mapserver/mapcache/src/cache_disk.c
Log:
fix compilation error when cairo is not enabled
thomas.bonfort | 2011-04-29 21:11:31 +0200 (Fri, 29 Apr 2011)
Modified: trunk/mapserver/mapcache/src/cache_disk.c
===================================================================
--- trunk/mapserver/mapcache/src/cache_disk.c 2011-08-26 11:19:14 UTC (rev 12355)
+++ trunk/mapserver/mapcache/src/cache_disk.c 2011-08-26 11:19:18 UTC (rev 12356)
@@ -100,10 +100,12 @@
if(GC_HAS_ERROR(ctx)) {
return GEOCACHE_FALSE;
}
- if(apr_file_open(&f, filename, APR_FOPEN_READ,APR_OS_DEFAULT, ctx->pool) == APR_SUCCESS)
- return GEOCACHE_TRUE;
+ if(apr_file_open(&f, filename, APR_FOPEN_READ,APR_OS_DEFAULT, ctx->pool) == APR_SUCCESS) {
+ apr_file_close(f);
+ return GEOCACHE_TRUE;
+ }
else
- return GEOCACHE_FALSE;
+ return GEOCACHE_FALSE;
}
static void _geocache_cache_disk_delete(geocache_context *ctx, geocache_tile *tile) {
More information about the mapserver-commits
mailing list