fix memleak in tilecache