removed tricky memory leak in chat lobbies due to handling of partial messages

This commit is contained in:
csoler 2016-04-21 22:07:50 -04:00
parent 7aea6e5bf8
commit e9fa9eb317
6 changed files with 30 additions and 27 deletions

View file

@ -268,6 +268,8 @@ bool DistantChatService::initiateDistantChatConnexion(const RsGxsId& to_gxs_id,
item->PeerId(RsPeerId(tunnel_id)) ;
handleRecvChatMsgItem(item) ;
delete item ; // item is replaced by NULL if partial, but this is not the case here.
return true ;
}