# HG changeset patch
# User nemo
# Date 1691360679 14400
# Node ID 2d9d07ccb8ef7064dbf026a4a4d777e914173ad5
# Parent  cee831693af1ecd9acb5a5201543f8ad703df4ae# Parent  303cf91e52336eb76d196130b53ee66c5d313f2a
pull in neglected fix

diff -r cee831693af1 -r 2d9d07ccb8ef hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Mon Jul 24 20:02:18 2023 +0200
+++ b/hedgewars/uGears.pas	Sun Aug 06 18:24:39 2023 -0400
@@ -288,6 +288,7 @@
                             curHandledGear^.Tex:= RenderStringTex(trmsg[sidUnknownGearValue], $ff808080, fntSmall)
                         else
                             begin
+                            FreeAndNilTexture(curHandledGear^.Tex);
                             // Display mine timer with up to 1 decimal point of precision (rounded down)
                             i:= curHandledGear^.Timer div 1000;
                             j:= (curHandledGear^.Timer mod 1000) div 100;