mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-03-18 13:06:10 -04:00
fixed memory leak in GxsTrans
This commit is contained in:
parent
12a45294a3
commit
0f99647a86
@ -21,6 +21,7 @@
|
||||
#include "util/stacktrace.h"
|
||||
|
||||
#define DEBUG_GXSTRANS 1
|
||||
|
||||
typedef unsigned int uint;
|
||||
|
||||
RsGxsTrans *rsGxsTrans = NULL ;
|
||||
@ -380,6 +381,9 @@ void p3GxsTrans::GxsTransIntegrityCleanupThread::run()
|
||||
totalMessageSizeAndCount[msg->metaData->mAuthorId].size += msg->msg.bin_len ;
|
||||
totalMessageSizeAndCount[msg->metaData->mAuthorId].count++;
|
||||
delete msg;
|
||||
|
||||
if(item != NULL)
|
||||
delete item ;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user