mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-19 20:04:24 -04:00
Merge pull request #898 from csoler/v0.6-GxsTransport
fixed memory leak in GxsTrans
This commit is contained in:
commit
2bb49f6925
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,7 @@
|
||||||
#include "util/stacktrace.h"
|
#include "util/stacktrace.h"
|
||||||
|
|
||||||
#define DEBUG_GXSTRANS 1
|
#define DEBUG_GXSTRANS 1
|
||||||
|
|
||||||
typedef unsigned int uint;
|
typedef unsigned int uint;
|
||||||
|
|
||||||
RsGxsTrans *rsGxsTrans = NULL ;
|
RsGxsTrans *rsGxsTrans = NULL ;
|
||||||
|
@ -380,6 +381,9 @@ void p3GxsTrans::GxsTransIntegrityCleanupThread::run()
|
||||||
totalMessageSizeAndCount[msg->metaData->mAuthorId].size += msg->msg.bin_len ;
|
totalMessageSizeAndCount[msg->metaData->mAuthorId].size += msg->msg.bin_len ;
|
||||||
totalMessageSizeAndCount[msg->metaData->mAuthorId].count++;
|
totalMessageSizeAndCount[msg->metaData->mAuthorId].count++;
|
||||||
delete msg;
|
delete msg;
|
||||||
|
|
||||||
|
if(item != NULL)
|
||||||
|
delete item ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue