Fixed memory leak in TileArray.