mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-02-25 05:28:36 +01: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