fix memory leak in editor summary.