If you want to release the QProcess object after it is no longer required then do it... after it is no longer required, i.e. after it signals finished().

Qt Code:
  1. connect(proc, SIGNAL(finished(int, QProcess::ExitStatus)), proc, SLOT(deleteLater()));
To copy to clipboard, switch view to plain text mode 
Another way is to pass a parent object to QProcess - it will then be deleted when the parent is deleted.