The memory leak can happen if you click the close button repeatedly.