From c2c52a81ec8b27f8d8e8f491cc87fd1d6e9b11ef Mon Sep 17 00:00:00 2001 From: thunder2 Date: Fri, 8 Oct 2010 19:22:03 +0000 Subject: [PATCH] Fixed crash on load of the config, when the first attempt loads some RsItem's but failed and the second attempt failed too. The loaded items are deleted twice, because the std::list of the loaded items is not clear'ed after the delete of the items of the first attempt. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3657 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/pqi/p3cfgmgr.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libretroshare/src/pqi/p3cfgmgr.cc b/libretroshare/src/pqi/p3cfgmgr.cc index 1ad27a063..813b5eced 100644 --- a/libretroshare/src/pqi/p3cfgmgr.cc +++ b/libretroshare/src/pqi/p3cfgmgr.cc @@ -695,6 +695,8 @@ bool p3Config::loadConfig() delete (*it); } pass = false; + + load.clear(); } // try 2nd attempt with backup files if first failed