memory leak fix

git-svn-id: http://code.remobjects.com/svn/pascalscript@17 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
This commit is contained in:
carlokok 2006-10-17 09:26:54 +00:00
parent 9c76406f18
commit 003ad1ec9e

View File

@ -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;