Fix leak of update dialog (refs #47).