🚨 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:
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user