* Fixed up various memory leaks (mainly serialiser cleanup).

* Added pthread_detach() to allow proper thread cleanup (affected ony Linux!)



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@460 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2008-04-02 13:55:45 +00:00
parent e3df41b1da
commit d69c2f72f1
9 changed files with 36 additions and 8 deletions

View file

@ -88,6 +88,11 @@ BinFileInterface::~BinFileInterface()
{
fclose(buf);
}
if (hash)
{
delete hash;
}
}
int BinFileInterface::close()
@ -183,11 +188,14 @@ BinMemInterface::BinMemInterface(const void *data, const int defsize, int flags)
}
BinMemInterface::~BinMemInterface()
{
if (buf)
free(buf);
return;
}
{
if (buf)
free(buf);
if (hash)
delete hash;
return;
}
int BinMemInterface::close()
{