mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-16 14:10:11 +01:00
engine: client: fix memory leak on player disconnect
This commit is contained in:
parent
5b97c2135a
commit
911385d019
@ -1348,7 +1348,12 @@ void CL_UpdateUserinfo( sizebuf_t *msg )
|
||||
|
||||
if( slot == cl.playernum ) memcpy( &gameui.playerinfo, player, sizeof( player_info_t ));
|
||||
}
|
||||
else memset( player, 0, sizeof( *player ));
|
||||
else
|
||||
{
|
||||
COM_ClearCustomizationList( &player->customdata, true );
|
||||
|
||||
memset( player, 0, sizeof( *player ));
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user