mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-13 01:39:29 -04:00
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:
parent
ebcc7e4c1c
commit
5e0c8e062e
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue