This commit is contained in:
Pavel 2025-02-06 16:51:13 +03:00
parent 7d7950e52d
commit 3b8d38ad4b
4 changed files with 9 additions and 2 deletions

View File

@ -217,6 +217,8 @@ begin
if (src=nil) then Exit;
i:=src.ItemIndex;
if (i=-1) then Exit;
ptr:=PVkPhysicalDeviceProperties(src.Items.Objects[i]);
if (ptr=nil) then Exit;

View File

@ -121,7 +121,11 @@ end;
Destructor TGameProcessSimple.Destroy;
begin
thread_dec_ref(Ftd);
if (Ftd<>nil) then
begin
thread_dec_ref(Ftd);
Ftd:=nil;
end;
inherited;
end;

View File

@ -679,6 +679,7 @@ begin
if (n<>0) then
begin
Writeln(StdErr,'failed cpu_thread_create:0x',HexStr(n,8));
thread_free(newtd);
Exit(EINVAL);
end;

View File

@ -325,7 +325,7 @@ begin
Result:=0;
end else
begin
Result:=-1;
Result:=GetLastError;
end;
{$ENDIF}