mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 02:48:07 +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;
|
||||
begin
|
||||
BasicEventDestroy(Handle);
|
||||
if (Handle<>Nil) then
|
||||
BasicEventDestroy(Handle);
|
||||
end;
|
||||
|
||||
constructor TEventObject.Create(EventAttributes : PSecurityAttributes;
|
||||
|
Loading…
Reference in New Issue
Block a user