From a7bb4a84d951044025d10f30fd3e4002bea2c7e7 Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Mon, 3 Oct 2022 05:06:06 +0700 Subject: [PATCH] Fix `PlayersParser` not properly cleaning `EPlayer` reference --- sources/Commands/PlayersParser.uc | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/Commands/PlayersParser.uc b/sources/Commands/PlayersParser.uc index 9b21581..9e31535 100644 --- a/sources/Commands/PlayersParser.uc +++ b/sources/Commands/PlayersParser.uc @@ -101,6 +101,7 @@ protected function Finalizer() public final function SetSelf(EPlayer newSelfPlayer) { _.memory.Free(selfPlayer); + selfPlayer = none; if (newSelfPlayer != none) { selfPlayer = EPlayer(newSelfPlayer.Copy()); }