lazcontrols: tlvlgraph: fixed crash when freing while node is selected

git-svn-id: trunk@40744 -
This commit is contained in:
mattias 2013-04-07 22:03:24 +00:00
parent 6e7361cce0
commit b1bf50dbfc

View File

@ -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;