- TLCLHandleComponent should not try to destroy handle if did not create it

git-svn-id: trunk@11193 -
This commit is contained in:
paul 2007-05-25 07:34:35 +00:00
parent 9fe9006a80
commit c8de8a54bc

View File

@ -124,9 +124,12 @@ end;
procedure TLCLHandleComponent.DestroyHandle;
begin
HandleDestroying;
WSDestroyHandle;
FHandle := 0;
if FHandle <> 0 then
begin
HandleDestroying;
WSDestroyHandle;
FHandle := 0;
end;
end;
function TLCLHandleComponent.GetHandle: TLCLIntfHandle;