memory leak fix
git-svn-id: http://code.remobjects.com/svn/pascalscript@17 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
This commit is contained in:
parent
9c76406f18
commit
003ad1ec9e
@ -8602,6 +8602,7 @@ begin
|
||||
|
||||
if not ReadParameters(False, TPSValueProc(Result).Parameters) then
|
||||
begin
|
||||
FSelf.Free;
|
||||
Result.Free;
|
||||
Result := nil;
|
||||
exit;
|
||||
@ -8609,6 +8610,7 @@ begin
|
||||
|
||||
if not ValidateParameters(BlockInfo, TPSValueProc(Result).Parameters, Decl) then
|
||||
begin
|
||||
FSelf.Free;
|
||||
Result.Free;
|
||||
Result := nil;
|
||||
exit;
|
||||
|
Loading…
Reference in New Issue
Block a user