avoid memory leak in mesh widget