mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 08:09:18 +02:00
* Patch from Luxa Olivetti to fix memleak, fix issue #39941
This commit is contained in:
parent
336d531687
commit
438f21c0d6
@ -1103,9 +1103,9 @@ begin
|
|||||||
H:=FindHandler(AClassName,AMethodName,AContext,FreeObject);
|
H:=FindHandler(AClassName,AMethodName,AContext,FreeObject);
|
||||||
If (H=Nil) then
|
If (H=Nil) then
|
||||||
if (AClassName='') then
|
if (AClassName='') then
|
||||||
Exit(CreateJSON2Error(SErrInvalidMethodName,[AMethodName],EJSONRPCMethodNotFound,ID.Clone,transactionProperty))
|
Exit(CreateJSON2Error(SErrInvalidMethodName,[AMethodName],EJSONRPCMethodNotFound,ID,transactionProperty))
|
||||||
else
|
else
|
||||||
Exit(CreateJSON2Error(SErrInvalidClassMethodName,[AClassName,AMethodName],EJSONRPCMethodNotFound,ID.Clone,transactionProperty));
|
Exit(CreateJSON2Error(SErrInvalidClassMethodName,[AClassName,AMethodName],EJSONRPCMethodNotFound,ID,transactionProperty));
|
||||||
try
|
try
|
||||||
If Assigned(FOndispatchRequest) then
|
If Assigned(FOndispatchRequest) then
|
||||||
FOndispatchRequest(Self,AClassName,AMethodName,Params);
|
FOndispatchRequest(Self,AClassName,AMethodName,Params);
|
||||||
|
Loading…
Reference in New Issue
Block a user