bug correction: avoid reading deleted pointers by moving saveDone() after the next line

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2519 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2010-03-11 14:14:55 +00:00
parent ebcc7e4c1c
commit 5e0c8e062e

View File

@ -638,12 +638,13 @@ bool p3Config::saveConfiguration()
saveDone(); // callback to inherited class to unlock any Mutexes protecting saveList() data
// saves current config and keeps back-up (old configuration) // saves current config and keeps back-up (old configuration)
if(!backedUpFileSave(cfg_fname, cfg_fname_backup, toSave, cleanup)) if(!backedUpFileSave(cfg_fname, cfg_fname_backup, toSave, cleanup))
return false; return false;
saveDone(); // callback to inherited class to unlock any Mutexes protecting saveList() data
return true; return true;
} }