mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-30 17:35:57 +02:00
LCL/TreeView: Fix compilation in FPC 3.3.1 after change in FreeAndNil in commit 3df8de199470da796a9c00fc01f7ed6c3a07dc18
This commit is contained in:
parent
8001f45c6a
commit
4fd9cec6c7
@ -1364,7 +1364,10 @@ begin
|
||||
CB := nil;
|
||||
try
|
||||
if FEvalFlags * [defNoTypeInfo, defSimpleTypeInfo, defFullTypeInfo] = [defNoTypeInfo] then
|
||||
FreeAndNil(FResText);
|
||||
begin
|
||||
FResText := '';
|
||||
// FreeAndNil(FResText);
|
||||
end;
|
||||
|
||||
if (FCallback <> nil) then begin
|
||||
// All to local vars, because SELF may be destroyed before/while the callback happens
|
||||
|
@ -783,7 +783,7 @@ procedure TTreeNode.FreeAllNodeData;
|
||||
var
|
||||
i: Integer;
|
||||
begin
|
||||
FreeAndNil(FData);
|
||||
FreeAndNil(TObject(FData));
|
||||
for i:=0 to Count-1 do
|
||||
Items[i].FreeAllNodeData;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user