Fixed some memory leaks when config could not be loaded/saved.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5294 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2012-07-13 22:10:52 +00:00
parent fc8dfcf65b
commit 7e226558e4
3 changed files with 25 additions and 5 deletions

View file

@ -391,15 +391,17 @@ bool pqiSSLstore::encryptedSendItems(const std::list<RsItem*>& rsItemList)
delete *it;
}
bool result = true;
if(sizeItems == offset)
enc_bio->senddata(data, sizeItems);
else
return false;
result = false;
if(data != NULL)
delete[] data;
return true;
return result;
}
bool pqiSSLstore::getEncryptedItems(std::list<RsItem* >& rsItemList)