mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 00:29:34 +02:00
lazcontrols: tlvlgraph: fixed crash when freing while node is selected
git-svn-id: trunk@40744 -
This commit is contained in:
parent
6e7361cce0
commit
b1bf50dbfc
@ -2558,7 +2558,11 @@ end;
|
||||
destructor TCustomLvlGraphControl.Destroy;
|
||||
begin
|
||||
FreeAndNil(FImageChangeLink);
|
||||
FreeAndNil(FGraph);
|
||||
FGraph.OnInvalidate:=nil;
|
||||
FGraph.OnSelectionChanged:=nil;
|
||||
FGraph.OnStructureChanged:=nil;
|
||||
FGraph.Free;
|
||||
FGraph:=nil;
|
||||
FreeAndNil(FEdgeStyle);
|
||||
FreeAndNil(FNodeStyle);
|
||||
inherited Destroy;
|
||||
|
Loading…
Reference in New Issue
Block a user