🚨 Nil the label pointer when freeing a screen block label

Freeing without clearing left a dangling reference that a repeated
prepare pass would free again.
This commit is contained in:
2026-11-15 22:08:32 +01:00
parent 1fbce3570d
commit dd20f4962d
+1 -1
View File
@@ -2526,7 +2526,7 @@ begin
ABlockInfo^.HighRes := nil; ABlockInfo^.HighRes := nil;
ABlockInfo^.CheckRealQuad := False; ABlockInfo^.CheckRealQuad := False;
ABlockInfo^.Text.Free; FreeAndNil(ABlockInfo^.Text);
if item is TMapCell then if item is TMapCell then
begin begin