lcl: carbon: fixed crash on IDE close

git-svn-id: trunk@54559 -
This commit is contained in:
mattias 2017-04-07 16:52:13 +00:00
parent 8675415a02
commit 0e3f65c569

View File

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