mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00: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 ));
|
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…
x
Reference in New Issue
Block a user