mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-14 03:19:32 +02:00
- TLCLHandleComponent should not try to destroy handle if did not create it
git-svn-id: trunk@11193 -
This commit is contained in:
parent
9fe9006a80
commit
c8de8a54bc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user