fix memory leak in tiler