mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-08 17:18:17 +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
@ -123,11 +123,14 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TLCLHandleComponent.DestroyHandle;
|
procedure TLCLHandleComponent.DestroyHandle;
|
||||||
|
begin
|
||||||
|
if FHandle <> 0 then
|
||||||
begin
|
begin
|
||||||
HandleDestroying;
|
HandleDestroying;
|
||||||
WSDestroyHandle;
|
WSDestroyHandle;
|
||||||
FHandle := 0;
|
FHandle := 0;
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
function TLCLHandleComponent.GetHandle: TLCLIntfHandle;
|
function TLCLHandleComponent.GetHandle: TLCLIntfHandle;
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user