mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 21:50:05 +02:00
lcl: carbon: fixed crash on IDE close
git-svn-id: trunk@54559 -
This commit is contained in:
parent
8675415a02
commit
0e3f65c569
@ -377,7 +377,11 @@ function RegisterEventHandler(AHandler: TCarbonEventHandlerProc): EventHandlerUP
|
||||
var
|
||||
Node: TUPPAVLTreeNode;
|
||||
begin
|
||||
if UPPTree = nil then UPPTree := TAVLTree.Create;
|
||||
if UPPTree = nil then
|
||||
begin
|
||||
UPPTree := TAVLTree.Create;
|
||||
UPPTree.NodeClass:=TUPPAVLTreeNode;
|
||||
end;
|
||||
|
||||
Node := TUPPAVLTreeNode(UPPTree.Find(AHandler));
|
||||
if Node = nil then
|
||||
|
Loading…
Reference in New Issue
Block a user