- 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; procedure TLCLHandleComponent.DestroyHandle;
begin begin
HandleDestroying; if FHandle <> 0 then
WSDestroyHandle; begin
FHandle := 0; HandleDestroying;
WSDestroyHandle;
FHandle := 0;
end;
end; end;
function TLCLHandleComponent.GetHandle: TLCLIntfHandle; function TLCLHandleComponent.GetHandle: TLCLIntfHandle;