X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fclient.qc;h=663d16ed712f73d995025f28b98d1eba76c29627;hp=08b85b4cef0747357f8fb32d447929706e842de8;hb=1017a955336ffea041442a10138486f16f8273f1;hpb=94e238ca164301485d7935e8b84aaabe8aa8653a diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 08b85b4cef..663d16ed71 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -1352,8 +1352,8 @@ void ClientDisconnect(entity this) MUTATOR_CALLHOOK(ClientDisconnect, this); - if (CS(this).netname_previous) strunzone(CS(this).netname_previous); // needs to be before the CS entity is removed! - if (CS(this).weaponorder_byimpulse) strunzone(CS(this).weaponorder_byimpulse); + strfree(CS(this).netname_previous); // needs to be before the CS entity is removed! + strfree(CS(this).weaponorder_byimpulse); ClientState_detach(this); Portal_ClearAll(this); @@ -1373,7 +1373,7 @@ void ClientDisconnect(entity this) bot_relinkplayerlist(); - if (this.clientstatus) strunzone(this.clientstatus); + strfree(this.clientstatus); if (this.personal) delete(this.personal); this.playerid = 0;