mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 16:29:48 +02:00
* Objects passed in callback are ours to free
This commit is contained in:
parent
a0ac317aae
commit
ce04ce42ed
@ -2997,7 +2997,8 @@ begin
|
||||
ObjId:=PLongWord(p)^;
|
||||
inc(p,4);
|
||||
Result:=aResultClass.JOBCreateFromID(ObjId);
|
||||
Result.JOBObjectIDOwner:=false; // owned by caller (JS code in browser)
|
||||
Result.JOBObjectIDOwner:=True; // The objects passed are not freed, we need to do it.
|
||||
// Writeln('Will free ',ObjID);
|
||||
end
|
||||
else
|
||||
raise EJSArgParse.Create(JOBArgNames[p^]);
|
||||
|
Loading…
Reference in New Issue
Block a user