From 5a1757c5d9929c91b0a9e6631f6075f810c880c1 Mon Sep 17 00:00:00 2001 From: csoler Date: Thu, 11 Dec 2008 21:12:53 +0000 Subject: [PATCH] Invalid read correction (valgrind) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@888 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/ft/ftcontroller.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretroshare/src/ft/ftcontroller.cc b/libretroshare/src/ft/ftcontroller.cc index 418113459..e5bfe532f 100644 --- a/libretroshare/src/ft/ftcontroller.cc +++ b/libretroshare/src/ft/ftcontroller.cc @@ -258,7 +258,6 @@ bool ftController::completeFile(std::string hash) /* switch map */ mCompleted[fc->mHash] = *fc; - mDownloads.erase(it); /* for extralist additions */ @@ -272,6 +271,7 @@ bool ftController::completeFile(std::string hash) doCallback = fc->mDoCallback; callbackCode = fc->mCallbackCode; + mDownloads.erase(it); } /******* UNLOCKED ********/