fix memory leak in new safari