mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-20 01:39:25 +02:00
* Only free event if it was actually created
This commit is contained in:
parent
3c1d50ab72
commit
cb7a8dfea7
@ -412,7 +412,8 @@ end;
|
|||||||
|
|
||||||
destructor THandleObject.Destroy;
|
destructor THandleObject.Destroy;
|
||||||
begin
|
begin
|
||||||
BasicEventDestroy(Handle);
|
if (Handle<>Nil) then
|
||||||
|
BasicEventDestroy(Handle);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
constructor TEventObject.Create(EventAttributes : PSecurityAttributes;
|
constructor TEventObject.Create(EventAttributes : PSecurityAttributes;
|
||||||
|
Loading…
Reference in New Issue
Block a user