Delete QProcess after the process has finished

Why don't we just do the iLoadedDlls.removeAt(i) in the loop above, to avoid having to lock the iDllLock in the onProcessFinished() code?