From 5e0c8e062e6d12ecaefa6df68a08df46fdd78978 Mon Sep 17 00:00:00 2001 From: csoler Date: Thu, 11 Mar 2010 14:14:55 +0000 Subject: [PATCH] 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 --- libretroshare/src/pqi/p3cfgmgr.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/pqi/p3cfgmgr.cc b/libretroshare/src/pqi/p3cfgmgr.cc index 84f7110f1..88bcf64dc 100644 --- a/libretroshare/src/pqi/p3cfgmgr.cc +++ b/libretroshare/src/pqi/p3cfgmgr.cc @@ -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) if(!backedUpFileSave(cfg_fname, cfg_fname_backup, toSave, cleanup)) return false; + saveDone(); // callback to inherited class to unlock any Mutexes protecting saveList() data + return true; }