mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: net_chan: fix Netchan_AddBufferToList leaking pointer
This commit is contained in:
@@ -617,7 +617,10 @@ void Netchan_AddBufferToList( fragbuf_t **pplist, fragbuf_t *pbuf )
|
||||
if( id1 > id2 )
|
||||
{
|
||||
// insert here
|
||||
pbuf->next = n->next;
|
||||
// pbuf->next = n->next;
|
||||
|
||||
// a1ba: this seems to be incorrect insertion, as `n` gets removed from list and effectively leaked
|
||||
pbuf->next = n;
|
||||
pprev->next = pbuf;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user