The Locate dialog is never destroyed (therefore its destructor (~LocateDlg) can't be used because it's never called , etc.), the present change can solve that.
This is a screenshot of a Valgrind report inside Qt Creator:
Additionally, if someone tries to use its destructor nowadays, e.g.:
~LocateDlg()
{
QTextStream(stdout) << "DESTRUCTING" << endl;
}he sees that that code is never executed.
