[qt] fix memory leak